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

RE: HTTP request



> From: John Clark

> As mentioned, I am trying to duplicate this request:


> https://url/vendor_transaction.ReceiveXMLmessage?xmlString=<?xml%20version=%221.0%22?><PraxellMessage><V2CC_WithdrawRequest%20AcountType=%22ATypePrivateLabel%22%20><VendorID>1234</VendorID><AcountID>4444333322221111</AcountID><Password>NULL</Password><Amount%20Currency=%22USD%22><TotalAmount>1000</TotalAmount></Amount><TargetTrxState>AUTH</TargetTrxState></V2CC_WithdrawRequest></PraxellMessage>


> My code looks something like this:


> URL  = 'https://url/vnv/'
         + 'vendor_transaction.ReceiveXMLmessage?xmlString='
         + '<?xml version="1.0"?>'

> GET /vnv/vendor_transaction.ReceiveXMLmessage?xmlString=<?xml version="1.0"?>

I see a couple things that may be problems.  Note your request to duplicate is http://url/vendor_transaction while your code is https://url/vnv/.

Second, you have spaces (and other invalid characters) embedded in the URL.  You probably want to convert them to valid characters as displayed in the URL you're trying to duplicate.  I believe there is a URL encoding function in HTTPAPI.
--
Sean Porterfield

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
-----------------------------------------------------------------------