I just tried the first "working" example:
values QSYS2.HTTP_GET('
http://production.shippingapis.com/ShippingAPI.dll'
concat
url_encode('?API=Verify&XML=<AddressValidateRequest
USERID="xxxxxxxxx"><Revision>1</Revision><Address ID="0"><Address1>SUITE
K</Address><Address2>29851
Aventura</Address2><City/><State>CA</State><Zip5>92688</Zip5><Zip4/></Address></AddressValidateRequest>'),
'{
"header":"Content-Type,text/xml",
"header":"Accept,*",
"header":"Content type,charset=UTF-8"
}');
and that doesn't work either. So maybe USPS doesn't like the output of
url_encode ?
On Mon, Jan 3, 2022 at 9:51 AM Sam_L <lennon_s_j@xxxxxxxxxxx> wrote:
I am experimenting with QSYS2.HTTP_GET and the USPS APIs, Using Run SQL
Scripts on PUB400.COM.
And I'm having a problem...
This example,taken from their web site, works in Postman, and also
pasting into Firefox.
--
Jack Woehr, IBM Champion 2021
<
https://www.youracclaim.com/badges/528d23d6-087f-4698-8d17-d59688106ac4/public_url>
Absolute Performance, Inc.
12303 Airport Way, Suite 100
Broomfield, CO 80021
NON-DISCLOSURE NOTICE: This communication including any and all
attachments is for the intended recipient(s) only and may contain
confidential and privileged information. If you are not the intended
recipient of this communication, any disclosure, copying further
distribution or use of this communication is prohibited. If you received
this communication in error, please contact the sender and delete/destroy
all copies of this communication immediately.
As an Amazon Associate we earn from qualifying purchases.