News:

Looking for documentation? Take a look on our wiki

Main Menu

UPS SHIPING MODULE

Started by luigi001, May 12, 2005, 21:19:23 PM

Previous topic - Next topic

fidel

I am having the same issue from a site I migrated from another host to GoDaddy. The site was working flawlessly until the migration to GoDaddy. Unfortunately, the above suggestions are not working, and currently, GoDaddy is clueless as to what I am referring to, but to their credit, they are looking into it.

fidel

Here's the response from GoDaddy. I'm unsure of what and where the below code should be placed but will at first assume it should replace the previously suggested code within ups.php. Any help is appreciated.

QuoteBelow is a PHP script that uses CURL to connect securely to a remote system (http://www.paypal.com), obtain data from that system and then creates a Web page based on that data.

Note: On our shared hosting, any CURL applications that make secure HTTP connections (HTTPS over port 443) need to pass through a proxy server. The address for this proxy server is proxy.shr.secureserver.net and connections must specify the use of port 3128. The code below already includes this information.

<?

$URL="https://www.paypal.com";
if (isset($_GET["site"])) { $URL = $_GET["site"]; }
$ch = curl_init();
echo "URL = $URL <br>\n";
curl_setopt($ch, CURLOPT_VERBOSE, 1);
//curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($ch, CURLOPT_PROXY,"http://proxy.shr.secureserver.net:3128");
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt ($ch, CURLOPT_URL, $URL);
curl_setopt ($ch, CURLOPT_TIMEOUT, 120);
$result = curl_exec ($ch);
echo "<hr><br>\n";
echo 'Errors: ' . curl_errno($ch) . ' ' . curl_error($ch) . '<br><br>';
echo "<hr><br>\n";
curl_close ($ch);
print "result - $result";
echo "<hr><br>\n";

?>


http://help.godaddy.com/article.php?article_id=289&;

fidel

I have tried a multitude of options. Neither work. My latest attempt follows.

curl_setopt ($CR, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt ($CR, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($CR, CURLOPT_PROXY, "proxy.shr.secureserver.net:3128");

aravot

Sorry I don't have any solution just dropped by to say GoDaddy is to restrictive and troublesome, better to use another host.

fidel

Great all-around hosting. Great overall support. Love the fact they speak REAL American English. But, I am beginning to realize its downside with a major drawback!

fidel

Any hosting that you recommend and/or use?

aravot

I use Dreamhost for my regular sites they have their ups and downs but I am OK with it, for my store I use Media Temple, you could take a look what users are saying http://www.webhostingunleashed.com

relvar

Hello,

I ran into this problem when developing a new payment processor.  For godaddy, and maybe other hosting providers, you need to include the port in the https url. 

This change
$URL="https://www.paypal.com";
to
$URL="https://www.paypal.com:443";

and it should work.

Cheers,
Spencer

crazyprices

I was also having this problem but the IP didn't work so here is the proper code that got it working for me.

curl_setopt ($CR, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt ($CR, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($CR, CURLOPT_PROXY, "proxy.shr.secureserver.net:3128");


The IP that was in the orginal code either is no longer valid, or didn't point to the proper proxy server.

JJRO

 ;D  CHEERS! Worked for me!

Zox Pavlovic

Hello all,
I am new to Virtuemart with Joomla 1.5, and i need help.

I have Joomla 1.5 installed and configured, PHP cURL enabled, Virtuemart 1.1 installed and set, but i am receiving "invalid license" error with UPS Shipping.
Here is error code:
Error: UPS was not able to process the Shipping Rate Request.. Error Code: 250003, Error Description: Invalid Access License number

Please help me, i am running out of time :(

T

Quote from: Soeren on May 30, 2005, 15:06:42 PM
Hello,
I'm glad that your provider mailed you this information. This is exactly what is needed here.
Actually the file /classes/shipping/ups.php contains this section:
curl_setopt($CR, CURLOPT_URL, $protocol."://".$host.$path);
curl_setopt($CR, CURLOPT_POST, 1);
curl_setopt($CR, CURLOPT_FAILONERROR, true);
curl_setopt($CR, CURLOPT_POSTFIELDS, $xmlPost);
curl_setopt($CR, CURLOPT_RETURNTRANSFER, 1);

There you can add this information (right below the last line of the code snippet):
curl_setopt ($CR, CURLOPT_HTTPPROXYTUNNEL, TRUE);
curl_setopt ($CR, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($CR, CURLOPT_PROXY, "http://64.202.165.130:3128");

Save and try.
ciao, Soeren

I'm considering setting up Virtumart on my site instead of a separate OSCommerce site. The UPS shipping is the main problem. My Joomla site is hosted at Godaddy as well, do you know if these snippets will work for any shared hosting account, or is the IP just for this specific account?