---- "Ben Combee" <[EMAIL PROTECTED]> wrote:
> "Alfred Wallner" <[EMAIL PROTECTED]> wrote in message
> news:49612@palm-dev-forum...
> >
> > I am hoping someone else has seen this:
> > I am opening a socket to a webserver and send a GET request eg.
> >
> > char* request = "GET /cgi-bin/palm.pl?s0=xyz&s1=xyz HTTP/1.0
> \r\n\r\n";
> > int len = strlen(request);
> > if(send(socketfd,request,len,0) == -1) ... read response
> >
> > When my request string is 91 bytes or less, things works fine,
> > but when it's 92 bytes long, then there is one successful download
> but
> > all subsequent attempts fail in the connect method.
> > The connect 'errno' is 4612. I looked in file sys_errno.h, but
> > all error codes are in the range up to 100, so I am probably doing
> > something wrong there.
>
> 4612 == 0x1204. Error class 0x1200 is netErr -- the fourth error is
> netErrParamErr. NetLib (which is under the sockets wrapper you're
> using) is telling you that you've got a bad parameter.
>
thanks, that helped me to find my bug.
I was writing into memory of the serveraddr param to connect()
with this debugging statement:
StrPrintF(debuffer,"req= %s",request)
the problem was that debuffer had a fixed size of 60 while the request
string was much larger :)
> --
> Ben Combee, [EMAIL PROTECTED]
> Techwood Broadcasting Foundation, Austin Bureau
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
>
__________________________________________________
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/