> Does anyone know an easy way to POST binary content type HTTP requests
> through INetLib from a Palm to a web server? Right now it treats content
as
> type "application/x-www-form-urlencoded", instead of a binary type.
> "INetSettingEnum" has "inetSockSettingContentType", but it's read-only.
I do not think you can. If binary data is being transmitted, the sender
should encode it, and the receiver should decode it. HTTP cannot handle
binary data directly. In any event, your server is not expecting binary
data - it is expecting encoded data.
The simplest (but not the most efficient) way to encode your data is to
represent each byte in ASCII coded hex, e.g. 0x12345678 becomes
"%12%34%56%78". The % sign is the escape character used to identify
non-ASCII characters.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/