PaoloIT 2 Posted February 1, 2015 Share Posted February 1, 2015 Hello, I created a webserver on cc3200 with GET method, some text parameters and one submit button.. Everything work fine with GET method but there is a problem that the browser save the url with parameters and the parameters are present in url so everybody can see the value. To avoid this I tried to use POST method in form and submit but in the receive buffer I have only "POST" message and nothing else.... How can I use a POST to my webserver and read a value of parameters? Quote Link to post Share on other sites
spirilis 1,265 Posted February 1, 2015 Share Posted February 1, 2015 The parameters are usually stuffed at the end of the client's request I believe along with a header indicating how big the request data is. I recommend reading up on HTTP protocol for more information. Sent from my Galaxy Note II with Tapatalk 4 Quote Link to post Share on other sites
PaoloIT 2 Posted February 1, 2015 Author Share Posted February 1, 2015 This is my received buffer: new client POST / HTTP/1.1 Host: 192.168.0.10 Content-Type: application/x-www-form-urlencoded Origin: http://192.168.0.10 Content-Length: 10 Connection: keep-alive Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5 Referer: http://192.168.0.10/ Accept-Language: it-it Accept-Encoding: gzip, deflate The Content-Length change with the text input but I can't find it! Quote Link to post Share on other sites
spirilis 1,265 Posted February 1, 2015 Share Posted February 1, 2015 Hmm. What about continuing to read past the blank \r\n lines? Sent from my Galaxy Note II with Tapatalk 4 Quote Link to post Share on other sites
spirilis 1,265 Posted February 1, 2015 Share Posted February 1, 2015 Best thing is to use Wireshark on your workstation to sniff & analyze the TCP/IP traffic itself. Sent from my Galaxy Note II with Tapatalk 4 Quote Link to post Share on other sites
Ehsan 0 Posted February 11, 2015 Share Posted February 11, 2015 This is my received buffer: new client POST / HTTP/1.1 Host: 192.168.0.10 Content-Type: application/x-www-form-urlencoded Origin: http://192.168.0.10 Content-Length: 10 Connection: keep-alive Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5 Referer: http://192.168.0.10/ Accept-Language: it-it Accept-Encoding: gzip, deflate The Content-Length change with the text input but I can't find it! I have the same problem. Did you find any solution? Quote Link to post Share on other sites
PaoloIT 2 Posted February 16, 2015 Author Share Posted February 16, 2015 Hello everybody, I seen that the POST data are put after the header of html response. If you read more than 50 bytes after '/r' you will find the POST data Quote Link to post Share on other sites
Ponez 0 Posted November 11, 2015 Share Posted November 11, 2015 Hi everybody,I'm facing this problem right now.My question is, how can i read 50 bytes after '/r'.Little Code Example would be great.Thanks Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.