[WebDNA] USPS interface
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 100180
interpreted = N
texte = --Alt-Boundary-4884.34543375Content-type: text/plain; charset=US-ASCIIContent-transfer-encoding: 7BITContent-description: Mail message bodyHi All,I am trying to access the USPS site to get information and seem to have hit a roadblock. Here is the code to try a canned lookup per their documentation and I don't know what to think of the error message.My Code:[text]crlf=[unurl]%0D%0A[/unurl][/text][text]USPS_Variables=XML=[!][/!]
[!][/!][!][/!][!][/!]6406 Ivy Lane[!][/!]Greenbelt[!][/!]MD[!][/!][!][/!][!][/!][!][/!][/text][text]USPS_Return=[TCPConnect host=testing.shippingapis.com&port=80][TCPSend]POST /ShippingAPITest.dll?API=Verify[crlf][!][/!]USER-AGENT: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)[crlf][!][/!]Content-Type: application/x-www-form-urlencoded[crlf][!][/!]Content-length: [countchars][USPS_Variables][/countchars][crlf][!][/!][crlf][!][/!][USPS_Variables][crlf][!][/!][/TCPSend][/TCPConnect][/text]Got back:
[USPS_Return]What they return:HTTP/1.1 501 Not Implemented Server: Microsoft-IIS/5.0 Date: Thu, 03 Jul 2008 01:40:35 GMT Content-Type: text/html NOT IMPLEMENTEDThe server is unable to perform the method API=Verify at this time. ----------------------------------------------------I have no idea what this is trying to tell me and when I emailed tech support at USPS they sent me back a form email that said they didn't provide programming help. Anyone else try this yet and get it to work? I am not a pro at TCPConnect so don't know what to try next.Thanks,Larry GoodhewLarry Goodhew--Alt-Boundary-4884.34543375Content-type: text/html; charset=US-ASCIIContent-transfer-encoding: 7BITContent-description: Mail message body
Hi All,
I am trying to access the USPS site to get information and seem to have hit a roadblock. Here is the code to try a canned lookup per their documentation and I don't know what to think of the error message.
My Code:
[text]crlf=[unurl]%0D%0A[/unurl][/text]
[text]USPS_Variables=XML=<?xml version="1.0"?>[!]
[/!]<AddressValidateRequest USERID="XXXXXXXXXXXX">[!]
[/!]<Address ID="0">[!]
[/!]<Address1></Address1>[!]
[/!]<Address2>6406 Ivy Lane</Address2>[!]
[/!]<City>Greenbelt</City>[!]
[/!]<State>MD</State>[!]
[/!]<Zip5></Zip5>[!]
[/!]<Zip4></Zip4>[!]
[/!]</Address>[!]
[/!]</AddressValidateRequest>[/text]
[text]USPS_Return=[TCPConnect host=testing.shippingapis.com&port=80]
[TCPSend]POST /ShippingAPITest.dll?API=Verify[crlf][!]
[/!]USER-AGENT: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)[crlf][!]
[/!]Content-Type: application/x-www-form-urlencoded[crlf][!]
[/!]Content-length: [countchars][USPS_Variables][/countchars][crlf][!]
[/!][crlf][!]
[/!][USPS_Variables][crlf][!]
[/!][/TCPSend]
[/TCPConnect]
[/text]
Got back:<br>
[USPS_Return]
What they return:
HTTP/1.1 501 Not Implemented Server: Microsoft-IIS/5.0 Date: Thu, 03 Jul 2008 01:40:35 GMT Content-Type: text/html
NOT IMPLEMENTED
The server is unable to perform the method API=Verify at this time.
----------------------------------------------------
I have no idea what this is trying to tell me and when I emailed tech support at USPS they sent me back a form email that said they didn't provide programming help.
Anyone else try this yet and get it to work? I am not a pro at TCPConnect so don't know what to try next.
Thanks,
Larry Goodhew
Larry Goodhew
--Alt-Boundary-4884.34543375--
Associated Messages, from the most recent to the oldest:
--Alt-Boundary-4884.34543375Content-type: text/plain; charset=US-ASCIIContent-transfer-encoding: 7BITContent-description: Mail message bodyHi All,I am trying to access the USPS site to get information and seem to have hit a roadblock. Here is the code to try a canned lookup per their documentation and I don't know what to think of the error message.My Code:
[text]crlf=
[unurl]%0D%0A[/unurl][/text]
[text]USPS_Variables=XML=
[!][/!]
[!][/!][!][/!][!][/!]6406 Ivy Lane[!][/!]Greenbelt[!][/!]MD[!][/!][!][/!][!][/!][!][/!][/text]
[text]USPS_Return=[TCPConnect host=testing.shippingapis.com&port=80]
[tcpsend]POST /ShippingAPITest.dll?API=Verify[crlf]
[!][/!]USER-AGENT: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)[crlf]
[!][/!]Content-Type: application/x-www-form-urlencoded[crlf]
[!][/!]Content-length:
[countchars][USPS_Variables][/countchars][crlf]
[!][/!][crlf]
[!][/!][USPS_Variables][crlf]
[!][/!][/TCPSend][/TCPConnect][/text]Got back:
[USPS_Return]What they return:HTTP/1.1 501 Not Implemented Server: Microsoft-IIS/5.0 Date: Thu, 03 Jul 2008 01:40:35 GMT Content-Type: text/html NOT IMPLEMENTEDThe server is unable to perform the method API=Verify at this time. ----------------------------------------------------I have no idea what this is trying to tell me and when I emailed tech support at USPS they sent me back a form email that said they didn't provide programming help. Anyone else try this yet and get it to work? I am not a pro at TCPConnect so don't know what to try next.Thanks,Larry GoodhewLarry Goodhew--Alt-Boundary-4884.34543375Content-type: text/html; charset=US-ASCIIContent-transfer-encoding: 7BITContent-description: Mail message body
Hi All,
I am trying to access the USPS site to get information and seem to have hit a roadblock. Here is the code to try a canned lookup per their documentation and I don't know what to think of the error message.
My Code:
[text]USPS_Variables=XML=<?xml version="1.0"?>[!] [/!]<AddressValidateRequest USERID="XXXXXXXXXXXX">[!] [/!]<Address1></Address1>[!] [/!]<Address2>6406 Ivy Lane</Address2>[!] [/!]<City>Greenbelt</City>[!] [/!]</AddressValidateRequest>[/text]
[text]USPS_Return=[TCPConnect host=testing.shippingapis.com&port=80] [/!]USER-AGENT: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)[crlf][!] [/!]Content-Type: application/x-www-form-urlencoded[crlf][!] [/!][USPS_Variables][crlf][!] [/!][/TCPSend]
[/TCPConnect]
[/text]
Got back:<br>
[USPS_Return]
What they return:
HTTP/1.1 501 Not Implemented Server: Microsoft-IIS/5.0 Date: Thu, 03 Jul 2008 01:40:35 GMT Content-Type: text/html
NOT IMPLEMENTED
The server is unable to perform the method API=Verify at this time.
----------------------------------------------------
I have no idea what this is trying to tell me and when I emailed tech support at USPS they sent me back a form email that said they didn't provide programming help.
Anyone else try this yet and get it to work? I am not a pro at TCPConnect so don't know what to try next.
Thanks,
Larry Goodhew
Larry Goodhew
--Alt-Boundary-4884.34543375--
"Larry Goodhew"
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
MacAuthorize order data fields WAS:How To question... (1997)
Capitalize special cases (2000)
[ShowIf] and empty fields (1997)
Bug? (1997)
Instructions for Digest (1997)
Setting up WebCatalog with Retail Pro data (1996)
[sendmail] and [formvariables] (1997)
Frames and WebCat (1997)
WebCat2b12 - nesting [tags] (1997)
Latin Characters (1998)
Weird Math and SV (1997)
Multiple Ad databases? (1997)
Make sure I understand this??? (1997)
Further on formula.db failure to calculate shipCost (1997)
webcat plugin issue (2001)
Multiple Merchant Accounts? (1997)
Same Table Opened Twice (2003)
Spiders (1998)
[WebDNA] Upgrade 4.5.1 to 6.0a (2009)
Strange database format import (2000)