Greetings,

I want to confirm that the inetSockSettingContentTypeID can be changed
reliably by an application.

In InetMgr.h (4.0 sdk) it is listed as:

 inetSockSettingContentTypeID,    // (R) UInt32 (INetContentTypeEnum)

Also in Palm OS Reference (4.0 Docs, Page #1632 or Page #1848 in the 5.0
Docs), its stated explicitly to be a Read Only value.

However,  when the following statement gets executed under POSE on a
41_m500_Dbg ROM, I get no error.

error = INetLibSockSettingSet(inetInfoBlock.inetRefNum,
                                          inetInfoBlock.inetSockH,
                                          inetSockSettingContentTypeID,
                                          &contentTypeId,
                                          sizeof(UInt32));

where contentTypeId is declared as:

UInt32    contentTypeId = inetContentTypeOther;

This is a good thing (for us) because we don't want the palm proxy to
urlencode our request message (which it does otherwise)!

Can someone from Palm (or Palm Source?) please confirm that the
documentation / comments are incorrect and this is not a bug that will be
fixed in a future release?

Gracias,

- Sudeep

PS: Many thanks to Ben Combee for the following post:
http://groups.yahoo.com/group/palm-dev-forum/message/53246.
I wouldn't have even tried it if I hadn't read this message! Also, can
anyone point me to INetLow that was modified for the Palm OS 4.0 sdk? I
looked through and couldn't find it as part of the 4.0 sdk examples. The one
available for download from the KB was last changed for OS 3.5 I believe.


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to