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

RE: POST to an asp



Scott fixed this for me 2 months ago in the latest version of the API.
The post is not really timing out.  The attached rpg file contains
some logic previous to the post command that tells the api to close the
socket after it receives the data.

-----Original Message-----
From: owner-ftpapi@xxxxxxxxxxxxx [mailto:owner-ftpapi@xxxxxxxxxxxxx]On
Behalf Of Scott Klement
Sent: Friday, May 07, 2004 2:45 PM
To: ftpapi@xxxxxxxxxxxxx
Subject: Re: POST to an asp


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

Attachment: adr2adr.rpg
Description: Binary data