Re: [WebDNA] USPS interface
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 100183
interpreted = N
texte = Larry Goodhew wrote:> 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=[!]> [/!]
[!]> [/!][!]> [/!][!]> [/!]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]Hi Larry,Maybe try this:[text]crlf=[unurl]%0D%0A[/unurl][/text][text]USPS_Variables=API=Verify&XML=[!] [/!]
[!] [/!][!] [/!][!] [/!]6406 Ivy Lane[!] [/!]Greenbelt[!] [/!]MD[!] [/!][!] [/!][!] [/!][!] [/!][/text][text]USPS_Return=[TCPConnect host=testing.shippingapis.com&port=80][TCPSend]POST /ShippingAPITest.dll HTTP/1.0[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]-- Donovan D. Brooke PH/FAX: 1 (608) 291-2024----------------------------------------------VPWebDNA Software Corporation16192 Coastal HighwayLewes, DE 19958
Associated Messages, from the most recent to the oldest:
Larry Goodhew wrote:> 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=
[!]> [/!]
[!]> [/!][!]> [/!][!]> [/!]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]Hi Larry,Maybe try this:
[text]crlf=
[unurl]%0D%0A[/unurl][/text]
[text]USPS_Variables=API=Verify&XML=
[!] [/!]
[!] [/!][!] [/!][!] [/!]6406 Ivy Lane[!] [/!]Greenbelt[!] [/!]MD[!] [/!][!] [/!][!] [/!][!] [/!][/text]
[text]USPS_Return=[TCPConnect host=testing.shippingapis.com&port=80]
[tcpsend]POST /ShippingAPITest.dll HTTP/1.0[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]-- Donovan D. Brooke PH/FAX: 1 (608) 291-2024----------------------------------------------VPWebDNA Software Corporation16192 Coastal HighwayLewes, DE 19958
Donovan Brooke
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:
carriage returns in data (1997)
more [sendmail] woes.. (2000)
[WebDNA] Search question (2012)
upgrading (1997)
[showif] / [hideif] (1997)
redirect with frames (1997)
WC2f3 (1997)
[shownext] (2002)
webcatalog [date] bug (1999)
Formulas.db + Users.db (1997)
Multiple Replaces (1997)
Can I invoke an ssi plugin from within a webcat page (1997)
security (1997)
Attn: Bug in GeneralStore example b15 (1997)
New Guestbook Source (1997)
Quit revisited (1997)
Math Enhancement Request (2004)
Wow .. (2003)
Interpreting WebDNA in javascript (2006)
Fun with Dates - finally resolved but.... (1997)