Page 1 of 1

HTTP Multipart

PostPosted: Jan 27, 2008 @ 10:39pm
by yucani
Hello,
we need for our needs http requests. Until now we used simple get or post requests. As for that, we needed to encode request parameters only using ascii codes. To overcome this problems, we tried the multipart possibility.
Below the changed code sample

EHTTPRequest request("http://localhost/mod/o1.pl");
request.AddData("dt",(unsigned char *) aURL,data_out,NULL,"application/x-gzip");
ecd->net[0]->SendHTTPPostMultipart(&request);
stack.Alloc(aPagesize);

data_out holding the parameters length
aURL holding the parameters in a char*.

Running the Apps on WinXP, is ok. Perl scripts confirm the data is sended correct.
But on UIQ the Apps crashes or generates no netEvents and on a WM5 it returns HSTATE_ERROR netEvent.

We didn't try the apps on gprs only on wlan.
Is this feature also needing the apps to be signed?

PostPosted: Jan 28, 2008 @ 9:13am
by edge

multipart

PostPosted: Jan 28, 2008 @ 9:38am
by yucani

PostPosted: Jan 28, 2008 @ 10:04am
by edge

multipart

PostPosted: Jan 29, 2008 @ 11:05am
by yucani
as our http/net routines were not included were classmain was defined, but in a seperate module, we moved them back to ClassMain and the problem was solved.
Unfortunatly we do not have the time to find out why standard post and get worked well, but multipart not.


But definitly now Multipart requests are working on UIQ and PPC.