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

RE: Need XMLREQUEST= using http_url_post



HTTP://myurl.com?XMLREQUST=xxx is the format used on a GET, generally not on a POST.  Check the archives; Scott Klement has explained this very well, probably multiple times.
--
Sean Porterfield
________________________________________
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of pherrick@xxxxxxxxxx [pherrick@xxxxxxxxxx]
Sent: Friday, July 20, 2012 17:43
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: Need XMLREQUEST= using http_url_post

I am using http_url_post like this:

C                   eval      rc = http_url_post(
C                                  %trimr(XURL)  :
C                                  %ADDR(xxdata) :
C                                  %len(%trimr(xxdata)):
C                                  Filename)

Where Xurl is = HTTP://myurl.com
and xxdata is = to XML data, and
Filename is a file to receive the response on the IFS.

I think this is creating a post like this:
http://myurl?request=...xmldata here....
my question is:  is this so?  how can I see the actual request that is being made?  the httpapi_debug
does not show the actual request with the url and the formatted request.

and How can I make sure the request is using http://myurl.com?XMLREQUEST= ...XML data here...?

Do I have to use the http_url_post_xml to get a a XMLREQUEST= in the url post?

I was able to use the http_url_encoder_addvar(enc : 'XMLREQUEST' : 'XML DATA HERE')
using the http_URL_GET to create the XMLREQUEST, but I need to use a Post, not a Get.

I hope this is enough info to clearly communicate my question.

Thanks
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------

This email is confidential, intended only for the named recipient(s) above and may contain information that is privileged.  If you have received this message in error or are not the named recipient(s), please notify the sender immediately and delete this email message from your computer as any and all unauthorized distribution or use of this message is strictly prohibited.  Thank you.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------