Help with returning data from a GET request

Results 1 to 2 of 2

Thread: Help with returning data from a GET request

  1. #1
    John Butler Guest

    Default Help with returning data from a GET request

    I am trying to link to UPS to determine shipping charges live. Their specifications on doing this use Perl as the scripting language to show how to send the request to their CGI processing script, but they don&#039t have any example of how to retrieve the info from the resulting page. I have converted the request into a simple http get request, but still need a way to pull the resulting 1 line of text back into my script. Have considered opening the request in a new named window the somehow reading the text, but haven&#039t figured out a way. The get method posts the following url:<BR><BR>http://www.ups.com/using/services/rave/qcostcgi.cgi?accept_UPS_license_agreement=yes&10_a ction=3&13_product=GND&14_origCountry=US&22_destCo untry=US&23_weight=1&47_rate_chart=Regular+Daily+P ickup&48_container=00&49_residential=1&15_origPost al=32571&19_destPostal=32505<BR><BR>and the resulting page is:<BR><BR>UPSOnLine3%GNDRES%32571%US%32505%US%002 %1%3.93%0.00%3.93%-1%<BR><BR>The next to last set of % signs is the value I am trying to receive. i.e. %3.93%<BR><BR>Any help, or a point in the right direction would be appreciated.

  2. #2
    bogz Guest

    Default RE: Help with returning data from a GET request

    Did anyone ever figure this out?<BR><BR>just curious..<BR><BR><BR>********************<BR><BR>I am trying to link to UPS to determine shipping charges live. Their specifications on doing this use Perl as the scripting language to show how to send the request to their CGI processing script, but they don&#039t have any example of how to retrieve the info from the resulting page. I have converted the request into a simple http get request, but still need a way to pull the resulting 1 line of text back into my script. Have considered opening the request in a new named window the somehow reading the text, but haven&#039t figured out a way. The get method posts the following url:<BR><BR>http://www.ups.com/using/services/rave/qcostcgi.cgi?accept_UPS_license_agreement=yes&10_a ction=3&13_product=GND&14_origCountry=US&22_destCo untry=US&23_weight=1&47_rate_chart=Regular+Daily+P ickup&48_container=00&49_residential=1&15_origPost al=32571&19_destPostal=32505<BR><BR>and the resulting page is:<BR><BR>UPSOnLine3%GNDRES%32571%US%32505%US%002 %1%3.93%0.00%3.93%-1%<BR><BR>The next to last set of % signs is the value I am trying to receive. i.e. %3.93%<BR><BR>**********************

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •