VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Shipping VM 1.1 => DHL | Air express VM 1 => Topic started by: mrbietz on June 13, 2008, 08:55:32 AM

Title: dhl timing out
Post by: mrbietz on June 13, 2008, 08:55:32 AM
Has anyone tried using the DHL module?


I did everything the instructions said and I still cant get it to work.  I send DHL all the information and they acknowledged my emails and changed my account to production stage.

i am using virtuemart 1.1 and joomla 1.0.15

what happens is when it is enabled in the ecommerce system it just times out the browser.

any suggestions?
Title: Re: dhl timing out
Post by: aravot on June 22, 2008, 12:04:10 PM
Could be something blocking request, I have it working on my site, Joomla 1.5.3 and VM 1.1.0, php5
Title: Re: dhl timing out
Post by: mrbietz on June 25, 2008, 02:26:07 AM
Hi thanks for your response.

i narrowed the problem down to godaddy.  because it works fine on servers that aren't hosted by godaddy.....

but i have the USPS module working and i have the proxy server set up.

is there a way to get DHL to work on godaddy servers?
Title: Re: dhl timing out
Post by: mrbietz on June 25, 2008, 03:57:26 AM
DHL gets its' requests from https://eCommerce.airborne.com/ is there away to allow this to pass through the godaddy proxy

like so? :

but i don't know where in connectiontools.class.php to put something like this.

I am using virtuemart 1.1.1

<?

$URL="https://eCommerce.airborne.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";

?>