Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Zip Code Lookup on USPS
Message
 
 
À
19/03/1999 15:13:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00199870
Message ID:
00199994
Vues:
17
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform