Using AdafruitHTTPServer on Wiced Feather. Where do I find "

For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
alienartist
 
Posts: 3
Joined: Thu Feb 09, 2017 2:12 pm

Using AdafruitHTTPServer on Wiced Feather. Where do I find "

Post by alienartist »

Hello!
This is a simple question (I think). I am having trouble finding out where the "POST" data is supposed to be. I am using the AdafruitHTTPServer class on the Wiced Feather.
I have a simple HTML form that submits using a POST method.
The handler is called correctly and the "query" variable contains :
"/szap.dlHTTP/1.1
Host: 192.168.3.1
Referer: http://192.168.3.1/szap.dl
Content-Type: application/x-www-form-urlencoded
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Origin: http://192.168.3.1
Content-Length: 28
Connection: keep-alive
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 7_1_2 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/7.0 Mobile/11D257 Safari/9537.53"

Also," http_request->length contains the same length as the header....but I can't find the POSTed data.
Where is it supposed to be when all is well? That is the only question.
Thank you,
Don

...
HTTPPage("/szap.dl" , HTTP_MIME_TEXT_HTML, simpleZapHandler);
..
void simpleZapHandler (const char* url, const char* query, httppage_request_t* http_request) {
...
}

Locked
Please be positive and constructive with your questions and comments.

Return to “Wireless: WiFi and Bluetooth”