[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Invalid Header Name
Hi Scott,
Thank you very much for having solved that problem during my vacation. I am not sure that I had found
the problem with the missing CRLFs.
Regards,
Thomas.
Scott Klement schrieb:
> hi Karl,
>
> Thank you for providing code that I could experiment with. I've
> discovered what I believe to be the problem. In your GETEODROLL code,
> you are using the "additional header" callback routine -- but you've
> forgotten to terminate your header with a CRLF. Therefore, it thinks
> your XML document is part of the HTTP headers -- resulting in the "Bad
> Header" error message.
>
> This is the routine in GETEODROLL that I'm referring to:
>
> P Add_SOAPACTION B
> D Add_SOAPACTION PI
> D Header 1024A varying
> D UserData * value
> /free
> Header = 'SOAPAction: '
> + '"http://fwapi.DriverTech.com/'
> + 'ReportsService_v2/VehiclePerformance_GetByDate"';
> /end-free
> P E
>
> You need to add a CR/LF (EBCDIC x'0d25') to your header to make it a
> valid HTTP header. So your routine will look like this:
>
> P Add_SOAPACTION B
> D Add_SOAPACTION PI
> D Header 1024A varying
> D UserData * value
> /free
> Header = 'SOAPAction: '
> + '"http://fwapi.DriverTech.com/'
> + 'ReportsService_v2/VehiclePerformance_GetByDate"'
> + x'0d25';
> /end-free
> P E
>
> No changes are required to HTTPAPI itself.
>
>
> Karl Woods wrote:
>> I've changed the logs to .txt documents. You can compile and run the
>> attached program (GETEODROLL). However, I will need an IP address you
>> will be using so that it can be white listed. This is a private
>> service.
>>
>> Also, the access credentials are made up, so that if you get past the
>> POST problem you will receive an Authentication Failure.
>>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------