This sounds very trivial, but I can't get any data out from the web server with HTTPRequest().
The web server running on localhost port 80. It receives the HTTP request and respond to it,
but when the SB application receives data it always return error.
I checked with Wireshark that HTTP headers are Ok, everything seems fine but no success.
HTTPRequest() also adds extra parameter "?_=1455609277339" to every request (random number),
I guess it needs that ID number from the web server in some header but not sure as not mentioned
in the documentation.
Is there something I missed?
Code: Select all
Procedure HttpGetEvent(Success, Result$, UserData)
If Success
Debug Result$
Else
Debug "HTTPRequest(): Error"
EndIf
EndProcedure
; Get the content of this file, and display it in the debug window
;
HTTPRequest(#PB_HTTP_Get, "http://127.0.0.1/test.txt", "", @HttpGetEvent())