3/10/2016 10:02 AM | |
Joined: 9/28/2012 Last visit: 11/9/2022 Posts: 75 Rating:
|
Hi All Is it possible to send a HTTP line to a certain website like for example: http://www.mywebsite.com/data.php?variable1=value1&variable2=value2 or if not is it possible to send it to an extern IP adres that is not in the same subnet as the PLC can somebody show me an example if it is possible. regards Laantje |
3/10/2016 4:07 PM | |
Joined: 7/7/2010 Last visit: 3/21/2023 Posts: 13199 Rating:
|
So basically you want to send a TCP message to port 80 to a URL and ignore the response, or handle the normal response and resend or set send error flag for abnormal or no response (times out)? Look at the tcp send / receive commands.
|
science guy |
|
3/10/2016 4:35 PM | |
Joined: 9/28/2012 Last visit: 11/9/2022 Posts: 75 Rating:
|
Hi Huggy What i want to do is to send this line to the internet. nothing more, nothing less. I do not want a response back If it is possible Can you make an example for me i tried it, but i only can do it when it is in the same subnet and i only can send data, and not the total line. http://www.mywebsite.com/data.php?variable1=value1&variable2=value2 regards marc |
3/10/2016 5:04 PM | |
Joined: 7/7/2010 Last visit: 3/21/2023 Posts: 13199 Rating:
|
S7-1200 : TIA portal version? I'm using V13. The HTTP send request details that may help you develop your send request is found online in many places. If you use chrome browser, enable developer mode and see what your request looks like from your browser. You can do the same thing from your PLC. The DATA you send is the GET or POST header which includes the URI (the part of the URL that is not the address or port). Look here for examples: https://www.quora.com/What-does-an-HTTP-request-looks-like
|
science guy |
|
4/15/2016 9:44 AM | |
Posts: 1 Rating:
|
Is there any way to send the http request with vb scripts (hmi pannel) |
4/15/2016 2:52 PM | |
Joined: 11/21/2007 Last visit: 3/15/2023 Posts: 2321 Rating:
|
Hello |
There is no such thing as the last bug in a program |
|
This contribution was helpful to
1 thankful Users |
7/16/2018 9:11 PM | |
Joined: 3/15/2017 Last visit: 2/26/2023 Posts: 5 Rating:
|
Hi, I would like to consult you if you could do it? |
8/30/2021 3:37 PM | |
Joined: 9/28/2012 Last visit: 11/9/2022 Posts: 75 Rating:
|
I give this post again a kick. For me this issue is still not solved. as mentioned i want to send a line to the www. the line should be http://www.mywebsite.com/data.php?variable1=value1&variable2=value2 I can not send to an IP adress because the mywebsite.com is on a shared server. again the question if this is possible. At this moment i am using an interface module (arduino) to do this. but i am not so happy with it. Maybe now a few years later somebody has worked out a solution and is willing to share it. regards Naaltje |
This contribution was helpful to
1 thankful Users |
Follow us on