The problem in your code is the order it is called.

  e = INetLibConfigIndexFromName(lRef,&config,&indexP);
  e = INetLibOpen(lRef,indexP,0,NULL,NULL,&inetHP);

Also  after openng the Http Socket, you need to create a http request with.

   INetLibSockHTTPReqCreate and then call INetLibSockHTTPReqSend

Check it out. Hope that solves

Chida



Check that out.

Ben Combee wrote:

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


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