[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HTTPAPI problem
Sender: michaelr_41@xxxxxxxxxxxxxx
<h1>Error - 400</h1><HR><PRE>invalid http request header<br>
</PRE><br><HR>Http Proxy</br>
On Fri, 11 Jun 2004 00:54:17 -0500 (CDT), "Scott Klement"
<sk@xxxxxxxxxxxxxxxx> said:
> Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>
>
>
> Hello,
>
> > Yeah...it took the guy on the other side a month to rewrite his stuff.
>
> It doesn't look like anything changed to me...
>
>
> > If I use the same url and data from a browser, I get back what I
> > submitted...in other words, url?appreq=Hello returns Hello.
>
> Okay, but that's a GET request, not a POST request. Whenever the data is
> encoded into the URL itself by placing a question mark, and following it
> with variables, all in the URL, that's a GET request. That's not a POST
> request.
>
> If you do
>
> http_url_get_raw(
> 'http://www.twcs.com/artvan/sample4.asp?appreq=Hello':
> : 1: %paddr('INCOMING'))
>
> You get the same results as you do in the web browser. Why? Because
> they're both doing GET requests -- which was exactly the same thing I
> told
> you in the following message:
>
> http://www.scottklement.com/archives/ftpapi/200405/msg00020.html
>
> What has changed?
>
>
> > I thought it looked like HTTPAPI was liking it, but I'm getting 0 bytes
> > returned. Different behvior with a browser than with HTTPAPI.
>
> No. That's not true. The following is a very simple HTML web page that
> you can use to type data and have your browser send it (with the POST
> method) to the server.
>
> I just tried it, and I get zero bytes back, just like I did with HTTPAPI.
> Are you getting different results with a POST request than I am?
>
> <html>
> <head><title>Test POST</title></head>
> <body>
>
> <h1>Type the request to send:</h1>
>
> <center>
> <form method="post" action="http://www.twcs.com/artvan/sample4.asp">
> <textarea name="appreq" rows=20 cols=66></textarea>
> <p>
> <input type="submit" name="Submit" value="submit">
> </form>
> </center>
>
> </body>
> </html>
> -----------------------------------------------------------------------
> 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
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------