- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was looking through the forum for an example of how the CYW943907 eval board, when configured as an HTML server, could process fields from a form using "post". I was able to follow the "application" example in the SDK which uses "get". Any pointers on this one? Thanks!
Solved! Go to Solution.
- Labels:
-
Web Services
-
Wireless MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, I was looking at the "appliance" application.
Update: I was able to get a form POST to work by:
1) Employing a simple HTML form in the webpage (action ="/button_handler" method ="post") (I didn't use javascript/ajax).
2) The submitted text data length shows up in http_message_body->message_data_length, and the data is pointed to by http_message_body->data. The data can then be parsed/processed as required.
The same idea pertains to uploading a file, also. I can upload a file and parse it as well.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I believe you meant the "appliance" application in demo directory of WICED for example of http server. There is no sample example for POST method, but you can build an application with post method considering the implementation of "demo.appliance". The ajax script(WICED-Studio-6.2\43xxx_Wi-Fi\resources\scripts\general_ajax_script.js) needs to be modified to send POST method, instead of GET.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, I was looking at the "appliance" application.
Update: I was able to get a form POST to work by:
1) Employing a simple HTML form in the webpage (action ="/button_handler" method ="post") (I didn't use javascript/ajax).
2) The submitted text data length shows up in http_message_body->message_data_length, and the data is pointed to by http_message_body->data. The data can then be parsed/processed as required.
The same idea pertains to uploading a file, also. I can upload a file and parse it as well.
Thanks!