[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: POST to an asp



Sender: michaelr_41@xxxxxxxxxxxxxx

Would you like the program?

On Fri, 7 May 2004 13:44:49 -0500 (CDT), "Scott Klement"
<sk@xxxxxxxxxxxxxxxx> said:
> Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>
> 
> 
> Hi Michael,
> 
> > I have to POST some stuff to an IIS server using .asp's. When I access
> > the .asp through a little HTML form, it echoes back what I sent it. When
> > I use the http_url_post_raw API, I can see that I make the connection,
> > but it times out on the receive with this message (from the debug file):
> >
> > SetError() #13: HTTP/1.1 200 OK
> > recvdoc parms: identity 0
> > recvdoc(): entered
> > SetError() #0:
> > SetError() #42: recvdoc: Timed out waiting for data
> > http_close(): entered
> 
> At this point, it has posted your data to the web server, and is waiting
> for a response.  The web server is not, apparently, sending anything.  It
> sits and waits til the timeout elapses and then gives up.
> 
> My question is:  Why doesn't the web server send back data?  It's
> possible
> that HTTPAPI is incorrectly performing the POST in this particular
> circumstance.  (That seems odd, since many people all around the world
> are
> using this POST function, it would be weird that it doesn't work -- but
> maybe there's some peculiar nuance that's wrong.)
> 
> At any rate, I can't take this any further without more information.  I
> need to know how to reproduce the problem in order to attempt to fix it.
> 
> > Here's the code:
> >
> > Data = %Trim(Data) + %Trim(WorkBuffer) + CRLF;
> > rc = http_url_post_raw('http://www.xxxx.com/xxxxxx/' +
> >                           'sample3.asp':
> >                     %addr(Data):
> >                     %len(%trimr(Data)):
> >                     10: %paddr('INCOMING'));
> 
> 
> I don't see anything wrong here -- though the "10" is a bit odd, it
> shouldn't really have any effect.
> 
> 
> > Should I be using a different API?
> 
> Nonono, HTTPAPI is better than anything else :)  Please help us solve the
> problem so that everyone can benefit rather than switching to something
> else.
> 
> Basically, if you can't troubleshoot this problem yourself, please tell
> me
> how to reproduce it.
> 
> Thanks
> 
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubsribe from the list send mail
> to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
> -----------------------------------------------------------------------
-- 
  
  michaelr_41@xxxxxxxxxxxxxx

-- 
http://www.fastmail.fm - Sent 0.000002 seconds ago
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------