[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HTTPS POST - modifying Example 5 - Help needed
Hi Scott,
Thanks for the quick solution. That worked like a charm. For the
records, the following is the call that worked...
rc =
http_url_post_raw('https://secure.bluepay.com/interfaces/bp10emu':
%addr(data): %len(%trimr(data)):
1:
%paddr('INCOMING'):120:'RYDER_BP_TEST1':
'application/x-www-form-urlencoded');
BTW, from the definition of the http_url_post_raw, I assumed that I
could pass *OMIT to 7th parm as below -
rc =
http_url_post_raw('https://secure.bluepay.com/interfaces/bp10emu':
%addr(data): %len(%trimr(data)):
1: %paddr('INCOMING'):120:*OMIT:
'application/x-www-form-urlencoded');
but that fails at line 6450 in HTTPAPIR4 as shown in the debug screen
below -
Display Module Source
Program: HTTPAPIR4 Library: HTTPAPI Module:
HTTPAPIR4
6446
6447 * If no user-agent, pass '*OMIT' to next proc
6448 c if %parms>=10
6449 c eval p_UserAgent = %addr(wwUA)
6450 c eval wwUserAgent = peUserAgent
6451 c else
6452 c eval p_UserAgent = *NULL
6453 c endif
6454
6455 * If no content-type, pass '*OMIT' to next proc
6456 c if %parms>=11
6457 c eval p_ContentType = %addr(wwCT)
6458 c eval wwContentType = peContentType
6459 c else
6460 c eval p_ContentType = *NULL
More...
Debug . . . EVAL peUserAgent
F3=End program F6=Add/Clear breakpoint F10=Step F11=Display
variable
F12=Resume F17=Watch variable F18=Work with watch F24=More
keys
Pointer not set for location referenced.
Am I misinterpreting the parms...
Thanks and Regds
_____________________________________________________________________
Sarvapriya M Tripathi | Billing/Invoice/Tax Team | Ryder IT
Department
11690 NW 105 Street Miami, FL 33178-1103
Ofc: 305-500-3930 | Fax: 305-500-8034 | Email: stripathi@xxxxxxxxx
From: Scott Klement <sk@xxxxxxxxxxxxxxxx>
To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Date: 06/01/2010 02:02 PM
Subject: Re: HTTPS POST - modifying Example 5 - Help needed
Sent by: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
_________________________________________________________________
hi Sarvapriya,
You've forgotten to set the content-type to
application/x-www-form-urlencoded. You did this in the Java example,
but not in the RPG one.
The content-type is set as the 8th parameter to http_url_post_raw().
Take a look at the parameter descriptions in HTTPAPI_H for details.
----------------------------------------------------------------------
-
This is the FTPAPI mailing list. To unsubscribe, please go to:
[1]http://www.scottklement.com/mailman/listinfo/ftpapi
----------------------------------------------------------------------
-
The information contained in this electronic communication and any accompanying
document is confidential, may be
attorney-client privileged, and is intended only for the use of the addressee.
It is the property of Ryder System,
Inc. Unauthorized use, disclosure or copying of this communication, or any part
of it, is strictly prohibited and
may be unlawful. If you have received this communication in error, please noti
fy the sender immediately by return
email, and destroy this communication andall copies of it, including all attach
ments. Electronic communication
may be susceptible to data corruption, interception and unauthorized tampering
and Ryder disclaims all liability
of any kind for such actions or any consequences that may arise directly or ind
irectly therefrom.
References
1. 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
-----------------------------------------------------------------------