Note that attribute inetHTTPAttrResult will be zero for
successful queries. If inetHTTPAttrResult != 0, the value of
inetHTTPAttrErrDetail will have the *http* status code and
then value of inetHTTPAttrReason will have the http status
message (not exactly what your server printed - but close to it).

"Ioi Lam" <[EMAIL PROTECTED]> wrote in message news:45296@palm-dev-forum...
>
> 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/

Reply via email to