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

RE: HTTP Status 302



Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>


On Tue, 13 Apr 2004, James Viney wrote:
>
> Here's what I receive when I use your api's:
>
[SNIP]

The data that you've posted is the BODY.  The Location: keyword is
actually in the HTTP header.

In version 1.8 of HTTPAPI the only way to get the "header" information is
from the debug file...  you can enable the debug file in the CONFIG_H
source member, recompile HTTPAPI, and then look in that file for help.

Since this seems like an awkward way to handle this type of thing, I'm
including a new API call in version 1.9 called http_redir_loc().  When you
call this API, it will return the redirect location from the last GET or
POST request.  That should greatly simplify things.

I've also included an EXAMPLE13 program that demonstrates the use of this
HTTP_redir_loc() API call. Please download version 1.9 from
http://www.scottklement.com/httpapi/ and check out that EXAMPLE13.
Tell me if it helps.

Good Luck!

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------