I am using http to send data from the Palm to a web server. I am having trouble getting HTTP/HTTPS to work with multipart/form-data.
It works fine for application/x-www-form-urlencoded but I can't get it to work with multipart/form-data. I am trying to follow http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4 I am hard coding the header as a tSTR string resource. I am wondering if the Palm CRLF is different from the Server (Linux) CRLF. For application/x-www-form-urlencoded I am using the header: Content-Type = application/x-www-form-urlencoded And a data string of: Table=Goals&UserID=12345&ReferenceID=1&RecID=95683&Dirty=1&Deleted=0&Archived=0&Fields=GOAL&Data=This+is+the+text+data For multipart/form-data I am using a header of: Content-Type = multipart/form-data; boundary=41184676334 And a data string of: 41184676334 Content-Disposition: form-data; name="Table" Goals 41184676334 Content-Disposition: form-data; name="UserID" 12345 41184676334 Content-Disposition: form-data; name="RecID" 95683 41184676334 Content-Disposition: form-data; name="Dirty" 1 41184676334 Content-Disposition: form-data; name="Deleted" 0 41184676334 Content-Disposition: form-data; name="Archived" 0 41184676334 Content-Disposition: form-data; name="Fields" GOAL 41184676334 Content-Disposition: form-data; name="Data" This is the text data 41184676334-- If anyone has any pointers on what I might be doing wrong please let me know. Thanks Greg -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
