3/10/2016 10:02 AM | |
Joined: 9/28/2012 Last visit: 11/30/2023 Posts: 75 Rating: (3) |
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: 4/25/2024 Posts: 14628 Rating: (2348)
|
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/30/2023 Posts: 75 Rating: (3) |
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: 4/25/2024 Posts: 14628 Rating: (2348)
|
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: (0) |
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/14/2024 Posts: 2323 Rating: (306) |
Hello |
There is no such thing as the last bug in a program |
|
This contribution was helpful to1 thankful Users |
7/16/2018 9:11 PM | |
Joined: 3/15/2017 Last visit: 5/30/2023 Posts: 5 Rating: (0) |
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/30/2023 Posts: 75 Rating: (3) |
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 to1 thankful Users |
8/30/2021 3:51 PM | |
Joined: 7/7/2010 Last visit: 4/25/2024 Posts: 14628 Rating: (2348)
|
I am confused. This is for S7-1200 PLCs, not arduino. S7-1200 PLCs should not be placed on the public internet with "www.mywebsite.com" domain name references. S7-1200 PLCs cannot be on a "shared server". What problem are you really trying to solve? Do you need a proxy server to take URL requests to "www.mywebsite.com" and direct to the correct internal IP address so your S7-1200 PLC can access the requests?
|
science guy |
|
9/15/2021 5:05 PM | |
Joined: 7/7/2010 Last visit: 4/25/2024 Posts: 14628 Rating: (2348)
|
Have a look at the OSCAT open source library for networking. The documentation is found here: http://www.oscat.de/images/OSCATNetwork/oscat_netlib121_en.pdf Search for the block HTTP_GET. Also, Siemens has networking library that might also suit your needs with the benefit that it will be maintained better than the Oscat library. Take a look at whichever one seems to meet your needs best.
|
science guy |
|
9/21/2021 11:22 PM | |
Joined: 1/23/2013 Last visit: 8/10/2022 Posts: 226 Rating: (5) |
Hi https://support.industry.siemens.com/cs/ww/en/view/109763879 =S7-1500 !!!
non S7-1200 Lib Lhttp Attachment109763879_LHTTP_DOC_V10_en.pdf (233 Downloads) |
Last edited by: Jen_Moderator at: 09/22/2021 09:16:03Optimized link. Added PDF as an attachment. |
|
9/21/2021 11:31 PM | |
Joined: 7/7/2010 Last visit: 4/25/2024 Posts: 14628 Rating: (2348)
|
LHTTP - GET - Entries - Forum - Industry Support - Siemens
|
science guy |
|
9/22/2021 12:48 PM | |
Joined: 1/23/2013 Last visit: 8/10/2022 Posts: 226 Rating: (5) |
Hi The Library for HTTP Communication (LHTTP) was integrated entirely into the Libraries for Communication. Please check, the following linkt in ordert to obtain more information about these libraries ID:109780503 |
This contribution was helpful to1 thankful Users |
Follow us on