Help needed with uploading data to HTTP Server
"racqueldesign" <[email protected]>
| Newsgroups | gmane.comp.hardware.rabbit-semiconductor |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I need help with uploading(maybe posting is the proper word) data to my HTTP server. I have read the document on uploading files but this is a simple data upload and the skeleton example isn't working me. Can someone please tell me what I am doing wrong.
The HTTP Server doesn't have a webpage to accept FORM. It simple respond to upload data. Example of the data in the body of the HTTP request i am require to upload is :
{
"sensor 2": 1,
"name": "contact sensor",
"username": "sandy",
"password": "access",
"msg": [{"update"}]
}
--------------------skeleton example in the document-------------
int my_CGI(HttpState * s)
{
switch(http_getAction(s)) {
case CGI_START:
break;
case CGI_DATA:
break;
case CGI_END:
break;
case CGI_EOF:
break;
case CGI_ABORT:
break;
}
return 0;
}