On Wed, 12 Feb 2003, Ted Beisler wrote:

> Glenn,
> 
>          I have never used the HTTP library (but I did write my own basic 
> one).  HTTP is a stateless protocol.  After the GET is sent to the server, 
> the server sends the page then closes the socket.  Could this be the 
> problem?  Depending on how the library is designed you might need a 
> separate HTTP connection for each GET request.

That is probably the problem and appears to be what is going on.

I am trying to avoid the long "establishing connection" period on the 
wireless...this could be a problem. 

But thanks - Your statement has helped back up my assumptions.

They have an undocumented class called HTTPSession that I am exploring 
now, it seems to be nothing more than a link list of httpconnections!
:)

> 
> -Ted
> 
> At 09:35 AM 2/12/2003 -0500, you wrote:
> 
> >Hello all,
> >
> >I am attempting to use the HTTP library from palmgear
> >and their support is on vacation/absent until Feb 18th so I thought I'd
> >see if anyone here is using it to answer a problem.
> >
> >What I have done is established an HTTPConnection in the constructor of my
> >main form and I delete it in the destructor.
> >
> >This varies from the example code shown in that they establish an
> >HTTPConnection when the GO button is hit, then they free all memory when
> >the function returns.
> >
> >I am trying to keep my httpconnection open at all times but I am getting
> >an errcode==1002 which just tells me  errSocketNoConnected 1002.  I am
> >clueless as to why the socket closed as I never called a close and the
> >object wasn't deleted.
> >
> >Has anyone had success maintaining an HTTPConnection for many HTTPRequests
> >using this library?
> >
> >--
> >Glenn Ford
> >National Library of Medicine
> >Bethesda, MD. USA
> >
> >
> >--
> >For information on using the Palm Developer Forums, or to unsubscribe, 
> >please see http://www.palmos.com/dev/support/forums/
> 
> Ted Beisler
> SPRUCE Computer Systems, Inc.
> (518) 783-6692 ext. 150
> [EMAIL PROTECTED]
> 
> 
> 
> 

-- 
Glenn Ford
National Library of Medicine
Bethesda, MD. USA


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

Reply via email to