"Sukhdev Gidwani" <[EMAIL PROTECTED]> wrote in message
news:35922@palm-dev-forum...
>
> Could someone please tell me what is wrong with this code wy the url i
> reguested for is not being opened at all
>
>    e = INetLibOpen(lRef,indexP,0,NULL,NULL,&inetHP);
>    e = INetLibConfigIndexFromName(lRef,&config,&indexP);
>    CharPtr urlP = "http://server/sukhdev/default.asp";
>
>    e = INetLibURLOpen(lRef,inetHP,(unsigned char*)
> urlP,NULL,&sockHP,evtWaitForever,0);
>    e = INetLibURLGetInfo (lRef,inetHP,(unsigned char*)urlP,&urlInfoP);
>    // here urlInfoP->version returns 0  does this imply that the url as
not
> been opened

There really isn't a reason to call INetLibURLGetInfo -- the 0 value for
version is normal, as indicated in the docs.

>     CharPtr data =  "name=sukhdev";
>     e = INetLibSockHTTPReqSend(lRef,sockHP,data,StrLen(data),20);

OK, after you call this, you have to then call other routines to wait and
read your data.  The INetLow sample from Palm really is a good model to
emulate.

--
Ben Combee
Veriprise Wireless <http://www.veriprise.com>



-- 
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