Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » Response from HTTP request(Try to get a response from HTTP server )
Response from HTTP request [message #1836711] Tue, 12 January 2021 17:36 Go to next message
Helbert da Rocha is currently offline Helbert da RochaFriend
Messages: 4
Registered: December 2020
Junior Member
Dear,

I am trying to get a response from a HTTP request. I am using FORTE 1.10.3 this is the error that I am getting:

INFO: T#0: FORTE is up and running
INFO: T#0: Using default bootfile location: forte.fboot
INFO: T#1: Boot file forte.fboot could not be opened. Skipping...
INFO: T#2347: Connection closed by peer
INFO: T#41767: [HTTP Layer] FB with GET request initialized. Host: 192.168.1.105, Path: API/Temperature
INFO: T#48596: CBSDSocketInterface: Opening TCP-Client connection at: 192.168.1.105:8080
INFO: T#48603: [HTTP Handler]: Starting HTTP timeout thread
DEBUG: T#49664: [HTTP Layer] Handling received HTTP response
ERROR: T#49666: [HTTP Layer] Invalid or incomplete HTTP response
ERROR: T#49666: [HTTP Layer] FB with host: 192.168.1.105:8080 couldn't handle the HTTP response

My server is responding a temperature like 25.5 using text/html.
I would like to know what is the response type that the FB is waiting?

Best regards,
Re: Response from HTTP request [message #1836866 is a reply to message #1836711] Sat, 16 January 2021 02:22 Go to previous message
xin zhao is currently offline xin zhaoFriend
Messages: 7
Registered: December 2020
Junior Member
I am using 1.13 and http client works fine for me.

I think you can debug the code to see why the response does not work. Or maybe you can get the traffic in wireshark and see if the reponse is not standard compliant.

Why not update to 1.13?


Regards
tibalt
Previous Topic:Subscribe_1
Next Topic:How to change the font type and size in 4DIAC editors?
Goto Forum:
  


Current Time: Fri Apr 26 10:18:04 GMT 2024

Powered by FUDForum. Page generated in 0.03325 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top