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

RE: Debug file error 400 using HTTPAPI



Thanks, Scott, I'll give it a shot.

Worth Holmes
Extn 1656
(817) 938-3889

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott
Klement
Sent: Monday, June 06, 2011 6:34 PM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Debug file error 400 using HTTPAPI

Looking at your debug file again, I noticed this detail:
Content-Type: text/xml

Since the data you're sending is not XML, I wonder why this is set this 
way?  Perhaps this is confusing the server you're sending to?

Please try this:

  rc = http_url_post('http://www.experian.com/ais/servlets/VHRXML'
                    : myPointer
                    : dataSize
                    : %trim(Filename)
                    : HTTP_TIMEOUT
                    : HTTP_USERAGENT
                    : 'application/x-www-form-urlencoded');

That 7th parameter controls the content-type.  You need to tell the 
server that your data is URL encoded form data rather than XML.  I don't

know if that's the cause of the problem, but it sure looks suspicious.


On 6/2/2011 1:10 PM, Holmes, Worth wrote:
>
>     The target URL indicates that the userid&  password was not sent,
but
>     my debug log shows it was.
>
>
>     Is there something I need to tell the target URL to do in order to
>     accept my post?
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------

CONFIDENTIALITY NOTICE: This communication may contain confidential information intended only for the addressee(s). If you received this communication in error, please notify the sender and delete it from your system.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------