Can you please create a "debug file" and show me the contents of that
file?
To do that, edit the CONFIG_H source member. At the bottom, you'll see
the following:
D/define DEBUG
DHTTP_DEBUG_FILE s 500A varying
D inz('/tmp/httpapi_debug.txt')
Make sure the the /DEFINE line is enabled, and re-compile HTTPAPI (you can
do that by calling the INSTALL program)
Then try your program again. It will create a file in the IFS called
"httpapi_debug.txt" in the /tmp directory. You can download that file
(using FTP, a mapped drive, or whatever works for you) to your PC and then
paste it into a message that you send to the mailing list. This will give
me a lot more information about what you're sending.
On Tue, 21 Dec 2004
nellestj@xxxxxxx wrote:
>
> Okay - I am still getting the "DSPLY HTTP/1.1 400 Bad Request" error. Is
there anything else that could be causing the error? Here is what I am sending:
>
> Enc = http_url_encoder_new();
>
> http_url_encoder_addvar_s(Enc : 'OrderNumber': %trimr (OrderNo));
> http_url_encoder_addvar_s(Enc : 'SequenceNumber': '01');
> http_url_encoder_addvar_s(Enc : 'PTA': '');
> http_url_encoder_addvar_s(Enc : 'Status': 'WHAT');
> http_url_encoder_addvar_s(Enc : 'UnitNumber': '3755');
> http_url_encoder_addvar_s(Enc!
: 'DrvL
stCtySt': 'MARSWI');
> http_url_encoder_addvar_s(Enc : 'DrvLstLat': '0');
> http_url_encoder_addvar_s(Enc : 'DrvLstLon': '0');
> http_url_encoder_addvar_s(Enc : 'DrvLstPosDtTm': '');
> http_url_encoder_addvar_s(Enc : 'OrigCtySt': '');
> http_url_encoder_addvar_s(Enc : 'DestCtySt': '');
> http_url_encoder_addvar_s
> (Enc : 'IsOrgRelay': '');
> http_url_encoder_addvar_s(Enc : 'IsDstRelay': '');
> http_url_encoder_addvar_s(Enc : 'RouteDrvHome': '');
> http_url_encoder_addvar_s(Enc : 'RouteDrvHomeBeforeStp': '');
> http_url_encoder_addvar_s(Enc : 'TripInputProc':
> 'AS400PlannerScreen');
> http_url_encoder_addvar_s(Enc : 'TripInputUser': 'NELT');
> http_url_encoder_addvar_s(Enc : 'TripReason': '');
> http_url_encoder_addvar_s(Enc : 'ActionPlan': '');
>
> rc = http_url_get_xml('
http://10.223.30.230/'+
> 'RTITripWS/TripService.asmx/'+
> 'GetTripUtilization?'+
> http_url_encoder_getst(enc)
> : %padd(StartOfElement)
> : %padd(EndOfElement)
> : %add(resp) );
>