Author Topic: dhl timing out  (Read 11649 times)

mrbietz

  • Beginner
  • *
  • Posts: 12
    • Joomla Envy
dhl timing out
« 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?

aravot

  • Peter
  • Moderator
  • Hero Member
  • *
  • Posts: 2874
    • VirtueMart Extensions
Re: dhl timing out
« Reply #1 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

mrbietz

  • Beginner
  • *
  • Posts: 12
    • Joomla Envy
Re: dhl timing out
« Reply #2 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?

mrbietz

  • Beginner
  • *
  • Posts: 12
    • Joomla Envy
Re: dhl timing out
« Reply #3 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

Code: [Select]
<?

$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";

?>