CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Tue Dec 18, 2018 4:36 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon Jul 24, 2017 3:41 am 
Offline

Joined: Mon May 15, 2017 6:47 am
Posts: 57
Hey All,

So I have device that does a simple echo to a webpage. For example, the device echos the value of 3000 (attached snippet). There's no header or body or any HTML tag...just a plain value of 3000. With this in mind, can the HTTPClient library get the info? I tried using it, but no success. I get HTTP response of 200, which is OK. Maybe I'm doing something wrong?

Thanks.


You do not have the required permissions to view the files attached to this post.


Top
   
PostPosted: Mon Jul 24, 2017 4:13 am 
Offline

Joined: Mon May 15, 2017 6:47 am
Posts: 57
I'm getting this for header, which looks correct due to content length:

"Date: Sun, 23 Jul 2017 20:09:02 GMT$NExpires: Sun, 23 Jul 2017 20:09:02 GMT$NContent-type: text/html;charset=iso-8859-1$R$NContent-length: 4"

Edit: I guess the closest thing to what I'm trying to read would be this page:
view-source:http://httpbin.org/deny

How can I modify the HTTPClient to read this page?

Thanks


Top
   
PostPosted: Thu Jul 27, 2017 8:05 am 
Offline

Joined: Thu Jul 27, 2017 6:52 am
Posts: 1
Use $R$N instead of $N in the http header.


Top
   
PostPosted: Wed Aug 02, 2017 1:25 am 
Offline

Joined: Mon May 15, 2017 6:47 am
Posts: 57
r.lang wrote:
Use $R$N instead of $N in the http header.


Hi r.lang,

Thanks for your response. Not sure if I follow you. Where could you modify this in the header though?

Thanks,


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited