Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Zip Code Lookup on USPS
Message
 
 
To
19/03/1999 15:13:05
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00199870
Message ID:
00199994
Views:
16
>The code would be something like:
>
>oIP = CREATEOBJECT('wwIPStuff')
>oIP.HTTPConnect('www.usps.com')
>oIP.AddPostKey('ctyStZip','78664-1234')
>lcBuffer = ""
>oIP.HTTPGetEx("/cgi-bin/zip4/ctystzip",@lcBUffer)
>?lcBuffer
>

Worked brilliantly once I did a SET PROC TO WWUTILS. This is fun stuff!
local oIP
set proc to wwutils
oIP = newobject('wwipstuff', 'wwipstuff.vcx')
oIP.httpconnect('www.usps.com')
oIP.AddPostKey('ctystzip','76053')
lcBuffer=""
oIP.httpgetex("/cgi-bin/zip4/ctystzip",@lcBuffer)
release oIP
? lcbuffer
set proc to
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform