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

RE: HTTP Status 302

Title: RE: HTTP Status 302

Thanks for your help Scott!

I'll let you know how I get on.

James Viney
Senior Analyst/Programmer
Fortis Insurance Ltd
Tel: 023 8031 3324

 -----Original Message-----
From:   Scott Klement [mailto:sk@xxxxxxxxxxxxxxxx]
Sent:   14 April 2004 07:24
To:     'ftpapi@xxxxxxxxxxxxx'
Subject:        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:

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

This e-mail, including any attachments, contains information
that is private and confidential and solely intended for the
addressee or addressees. If you are not the named or intended
recipient, please inform the sender immediately by reply
transmission and delete this e-mail, including any attachments,
without opening or copying it. In addition, in this event you
are hereby notified that any disclosure, reading, reproduction,
dissemination, distribution or any other use of this e-mail,
including any attachments, is strictly prohibited. No warranty
or guarantee is given with respect to the correct and accurate
transmission of the content as well as with respect to the
timely receipt of a sent e-mail.  

Messages and attachments are scanned for all viruses known. If
this message contains password-protected attachments, the files
have NOT been scanned for viruses by the Fortis.com mail
domain. Always scan attachments before opening them.