# Get a request via proxy

**URL:** https://www.wago.community/t/get-a-request-via-proxy/1378
**Category:** CODESYS
**Created:** [November 27, 2024, 8:00am UTC](https://www.wago.community/t/get-a-request-via-proxy/1378 "2024-11-27T08:00:29Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![TomasD](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/tomasd/32/2042_2.png) [@TomasD](https://www.wago.community/u/TomasD)
#### Post date: [November 27, 2024, 8:00am UTC](https://www.wago.community/t/get-a-request-via-proxy/1378/1 "2024-11-27T08:00:29Z")

</div>

I want to send a GET request. PFC 750-8202 (eCOCKPIT). I understand how to make a request. I was given a proxy, ip and port. Can you tell me if there is such a configuration in the PLC or FB setup? Maybe you need to configure it via SSH somehow? Who has faced a similar task?

---

<div class="post-metadata">

### Author: ![WagoDamRud](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagodamrud/32/258_2.png) [@WagoDamRud](https://www.wago.community/u/WagoDamRud)
#### Post date: [November 27, 2024, 2:00pm UTC](https://www.wago.community/t/get-a-request-via-proxy/1378/2 "2024-11-27T14:00:42Z")

</div>

With HTTP Requests I always use Postman first to check is server working.  
Then you can use _WagoAppHttp_ library to create GET request

---

<div class="post-metadata">

### Author: ![TomasD](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/tomasd/32/2042_2.png) [@TomasD](https://www.wago.community/u/TomasD)
#### Post date: [November 27, 2024, 2:24pm UTC](https://www.wago.community/t/get-a-request-via-proxy/1378/3 "2024-11-27T14:24:25Z")

</div>

Thanks for the reply, but I’m interested in setting up a proxy so I can specify the ip address and port to request. I don’t see any settings for proxies. Maybe I’m looking in the wrong place.

 ![2024-11-27_17-22-09](https://us1.discourse-cdn.com/flex016/uploads/wago/original/2X/c/cd3423d70048f47ff974b06fed12873ca97dfc1b.png)

On request proxy finds some functions, but it is not clear what to do with them and how to work.

 ![2024-11-27_17-33-02](https://us1.discourse-cdn.com/flex016/uploads/wago/original/2X/0/0dafc533f8371c8ef16950dbbd818e531fb3681b.png)

---

<div class="post-metadata">

### Author: ![quenorha](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/quenorha/32/429_2.png) [@quenorha](https://www.wago.community/u/quenorha)
#### Post date: [November 28, 2024, 7:02am UTC](https://www.wago.community/t/get-a-request-via-proxy/1378/4 "2024-11-28T07:02:23Z")

</div>

Maybe you need to use the underlying WagoSysCurl library, but to be honest this look like an hard task.  
And unfortunately the Web Client SL library doesn’t provide such a parameter either.

Have you tried to set up the proxy globally on Linux ?

export http\_proxy=http://proxy\_server\_address:proxy\_port/

Not sure whether it will work for the CODESYS program or only for the terminal.

---

<div class="post-metadata">

### Author: ![TomasD](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/tomasd/32/2042_2.png) [@TomasD](https://www.wago.community/u/TomasD)
#### Post date: [November 28, 2024, 8:02am UTC](https://www.wago.community/t/get-a-request-via-proxy/1378/5 "2024-11-28T08:02:56Z")

</div>

No I haven’t tried, or rather I haven’t figured out where to set it up. Can you describe in more detail how to customize I will try. And I’ll write back to you afterward.

---

<div class="post-metadata">

### Author: ![WagoDamRud](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagodamrud/32/258_2.png) [@WagoDamRud](https://www.wago.community/u/WagoDamRud)
#### Post date: [November 29, 2024, 2:58pm UTC](https://www.wago.community/t/get-a-request-via-proxy/1378/6 "2024-11-29T14:58:43Z")

</div>

Log in to the controller shell, and first try to send this request using cURL.

1. Download PuTTY ( [Download PuTTY - a free SSH and telnet client for Windows](https://putty.org/)) it is a SSH client, so we can connect do PLC console via SSH

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/7c351ea8cf3d45c69463b0a95b2c1cf27d305880.png)

1. Login with root/wago

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/b0f88081eabbfc5af21b69040ecf16567e76b5c1.png)

1. Try to send some requests using cURL:  

2. If it’s working, you can call this using SysProcess library or create own script to call ([SSH command from CoDeSys - #4 by WagoDamRud](https://www.wago.community/t/ssh-command-from-codesys/1048/4))

---

<div class="post-metadata">

### Author: ![TomasD](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/tomasd/32/2042_2.png) [@TomasD](https://www.wago.community/u/TomasD)
#### Post date: [December 2, 2024, 2:25pm UTC](https://www.wago.community/t/get-a-request-via-proxy/1378/7 "2024-12-02T14:25:27Z")

</div>

Thanks for the reply, I don’t have access at the moment but will have it soon. I tried the command line through a free proxy.  
The response I saw was the following message.  
 ![2024-12-02_17-23-17](https://us1.discourse-cdn.com/flex016/uploads/wago/original/2X/3/3738f8859575b024fc76ec477a0506c64f7d50fc.png)

That’ll probably work, thanks! I’ll report back later.
