On Fri, 1 Aug 2003, blaman wrote:

>  StrPrintF(cpSendBuf,"POST /myapi.oxp HTTP/1.1\nHost:
> www.myserver.de\nContent-Length:%u\n\n", StrLen (Request));
>
>  NetLibSend(AppNetRefnum, mySockFd, cpSendBuf, StrLen(cpSendBuf), 0, 0, 0,
> AppNetTimeout, &err);
>
>   WriteLoginRequest (Request);
>    StrCat(Request,"\n");

Erm... entering this thread mid-stride, but shouldn't you build what
you're sending to the server (which I assume WriteLoginRequest is doing)
BEFORE you build the header telling the server how long it is?  You'd need
to move the StrCat up there, too, to keep your length accurate... that, or
just leave it out if it's not needed by the server.

-- 
-----------------------------------------------------------------------
Brian Smith // avalon73 at arthurian dot nu // http://www.arthurian.nu/
Software Developer  //  Gamer  //   Webmaster  //  System Administrator
Seleznick's Theory of Holistic Medicine:  Ice Cream cures all ills.

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

Reply via email to