Hi,
I am trying to open an invalid URL like "http://no.such.site/". After
calling INetLibSockHTTPReqSend() with this URL, I poll on
INetLibSockStatus.
(a) On some occasions, for a very long time, INetLibSockStatus() just
returns status 0 (inetStatusNew). It never seem to return an error.
(b) On other occasions, INetLibSockStatus() claims that the URL becomes readable
after a few seconds of waiting. However, when I try to read it, I get
0 bytes.
This happens inside POSE.
So, how do you detect that an URL is invalid? To avoid situation (a),
I have to put a time-out in my loop that polls INetLibSockStatus().
Also, when I try to call INetLibSockHTTPAttrGet on any URL (whether
valid of not) it always returns 0 for inetHTTPAttrResult. I am expecting
200 for a successful HTTP get.
What's going on?
Thanks for your help.
- Ioi
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/