Re: ups quickcost [repost]
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 25082
interpreted = N
texte = > Where? Are you talking about> http://www.ups.com/using/services/rave/rate.html ?There is a version of this script that gives you the result in text format,delimited by % characters.www.ups.com/using/services/rave/qcostcgi.cgiThis is what I personallky do to retrieve my UPS costs:[text show=f]DepCountry=US[/text][text show=f]DepZip=85260[/text][math show=f]Weight=ceil([totalweight])[/math][TCPConnect host=www.ups.com&port=80][text show=f]s1=[middlestartafter=[url][UPSprod]%[DepZip]%[DepCountry]%[DestZip]%[DestCountry]%[/url]][TCPSend]GET /using/services/rave/qcostcgi.cgi?accept_UPS_license_agreement=yes&10_action=3&13_product=[UPSprod]&15_origPostal=[DepZip]&19_destPostal=[DestZip]&22_destCountry=[DestCountry]&23_weight=[weight]HTTP/1.0[UnURL]%0D%0A%0D%0A[/UnURL][/TCPSend][/middle][/text][/TCPConnect][text show=f]s2=[middlestartafter=[Url]%[/Url]&endbefore=[Url]%[/Url]][s1][/middle][/text][text show=f]s3=[middlestartafter=[Url][/Url]&endbefore=[Url][s2][/Url]][s1][/middle][/text][text show=f]s4=[middlestartafter=[Url][s3][/Url]&endbefore=[Url]%[/Url]][s1][/middle][/text][text show=f]s5=[middlestartafter=[Url][s3][/Url]&endbefore=[Url]%[/Url]][s4][/middle][/text][text show=f]s6=[middlestartafter=[Url][s3][/Url]&endbefore=[Url]%[/Url]][s5][/middle][/text][text show=f]UPS=[middle startafter=[Url][s6]%[/Url]][s5][/middle][/text]Explanation:We ship from Scottsdale, Arizona (zip code 85260).I round up the weight to the upper pound.Then I contact UPS via HTTP using the so neat [TCPConnect] context, give theweight, the zip codes and country codes and it usually works fine.Note: make sure your code is webcatalog compliant when you copy this.Also retrieve the UPS Product codes, and country codes as well, from UPS.I bet the UPS Package from PCS has them.-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to
.This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Associated Messages, from the most recent to the oldest:
> Where? Are you talking about> http://www.ups.com/using/services/rave/rate.html ?There is a version of this script that gives you the result in text format,delimited by % characters.www.ups.com/using/services/rave/qcostcgi.cgiThis is what I personallky do to retrieve my UPS costs:[text show=f]DepCountry=US[/text][text show=f]DepZip=85260[/text][math show=f]Weight=ceil([totalweight])[/math][TCPConnect host=www.ups.com&port=80][text show=f]s1=[middlestartafter=[url][UPSprod]%[DepZip]%[DepCountry]%[DestZip]%[DestCountry]%[/url]][tcpsend]GET /using/services/rave/qcostcgi.cgi?accept_UPS_license_agreement=yes&10_action=3&13_product=[UPSprod]&15_origPostal=[DepZip]&19_destPostal=[DestZip]&22_destCountry=[DestCountry]&23_weight=[weight]HTTP/1.0[unurl]%0D%0A%0D%0A[/UnURL][/TCPSend][/middle][/text][/TCPConnect][text show=f]s2=[middlestartafter=[url]%[/Url]&endbefore=[url]%[/Url]][s1][/middle][/text][text show=f]s3=[middlestartafter=[url][/Url]&endbefore=[url][s2][/Url]][s1][/middle][/text][text show=f]s4=[middlestartafter=[url][s3][/Url]&endbefore=[url]%[/Url]][s1][/middle][/text][text show=f]s5=[middlestartafter=[url][s3][/Url]&endbefore=[url]%[/Url]][s4][/middle][/text][text show=f]s6=[middlestartafter=[url][s3][/Url]&endbefore=[url]%[/Url]][s5][/middle][/text][text show=f]UPS=[middle startafter=[url][s6]%[/Url]][s5][/middle][/text]Explanation:We ship from Scottsdale, Arizona (zip code 85260).I round up the weight to the upper pound.Then I contact UPS via HTTP using the so neat [tcpconnect] context, give theweight, the zip codes and country codes and it usually works fine.Note: make sure your code is webcatalog compliant when you copy this.Also retrieve the UPS Product codes, and country codes as well, from UPS.I bet the UPS Package from PCS has them.-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Nicolas Verhaeghe
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:
Who's going to MacWorld? (1999)
[WebDNA] Search on a database (2012)
keep W* in front applescript? (1998)
Wireless WebDNA available today! (2000)
forming a SKU (1999)
WC2b12: Yes, Formulas.db is for real (1997)
Sorting a Search... (1998)
Secure Server (1999)
Is there a way to just get to the last record in the database? (1997)
Car Database - Imporant (2002)
RE: Signal Raised (1997)
WebCat2b13MacPlugIn - [include] (1997)
Images do not upload completely ... (2003)
Monitoring Script (2008)
Help formatting search results w/ table (1997)
Bug Report, maybe (1997)
Re:2nd WebCatalog2 Feature Request (1996)
Format of Required fields error message (1997)
Quick Question About Sorting (1997)
Replace context problem ... (1997)