Discussion:
HttpOpenRequest() and XML API
(too old to reply)
abcde
2008-04-22 19:50:04 UTC
Permalink
Hi All,

Currently, I am working with a third party XML APIs which have the following
format:

http://address/someapi.xml?para1=xxx&para2=xxx...

Things goes fine until I try to update some binary data.
I used base64 to encryp the binary data( a jpg photo, lenth is 70608 bytes
after encrypt) and put those data into the url( that is what their document
said). after that the whole url lenth is over 70700 bytes long.

when I use HttpOpenRequest( handle, "POST", commandBuffer, ..) to send those
data to the server, I got an error, the error code is 122 which means "The
data area passed to a system call is too small.".

Is there anybody can tell me how to increase that data area, or is there a
alternative way to get this job done?

Thanks in advance
Volodymyr M. Shcherbyna
2008-04-24 13:21:17 UTC
Permalink
Send data as headers. Use HttpAddRequestHeaders (...) function.
--
V.
This posting is provided "AS IS" with no warranties, and confers no
rights.
Post by abcde
Hi All,
Currently, I am working with a third party XML APIs which have the
http://address/someapi.xml?para1=xxx&para2=xxx...
Things goes fine until I try to update some binary data.
I used base64 to encryp the binary data( a jpg photo, lenth is 70608 bytes
after encrypt) and put those data into the url( that is what their
document said). after that the whole url lenth is over 70700 bytes long.
when I use HttpOpenRequest( handle, "POST", commandBuffer, ..) to send
those data to the server, I got an error, the error code is 122 which
means "The data area passed to a system call is too small.".
Is there anybody can tell me how to increase that data area, or is there a
alternative way to get this job done?
Thanks in advance
Loading...