Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Interesting UPS XML Curl Error

Interesting UPS XML Curl Error

Locked

Views: 3,383

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
29 Apr 2009, 4:44 PM
#1
boardstretcher avatar

boardstretcher

New Zenner

Join Date:
Mar 2009
Posts:
10
Plugin Contributions:
0

Interesting UPS XML Curl Error

the error in /tmp/upsxml.log is:
Error from cURL: Error [6]: Couldn't resolve host 'wwwcie.ups.com'

However, if i type: "curl wwwcie.ups.com" I get a webpage. So, obviously it is resolving.

If I make a test PHP script with: "$ip = gethostbyname('wwwcie.ups.com'); echo $ip;" I get a reply. So, PHP is resolving.

Also, If i put the XML information included in the log into text file called xmlstuff.txt and do a "curl -d @xmlstuff.txt" I get a "No Access Identification provided". But if i use the example straight from the UPS Manual, I get a positive response.

So, my questions are:

  1. Why am I getting this cURL error?
  2. How do I get this UPS XML module working for ZenCart (aside from following the directions explicitly)?
29 Apr 2009, 4:56 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Interesting UPS XML Curl Error

Do you have your Zen Cart site set up to use a CURL Proxy for some reason? Admin->Configuration->My Store. If so, perhaps you need to turn that off.

29 Apr 2009, 5:02 PM
#3
boardstretcher avatar

boardstretcher

New Zenner

Join Date:
Mar 2009
Posts:
10
Plugin Contributions:
0

Re: Interesting UPS XML Curl Error

Curl Proxy Status is False and Curl Proxy address is empty

29 Apr 2009, 5:16 PM
#4
boardstretcher avatar

boardstretcher

New Zenner

Join Date:
Mar 2009
Posts:
10
Plugin Contributions:
0

Re: Interesting UPS XML Curl Error

To get past this portion of the error. I added the IP address of wwwcie.ups.com to my /etc/hosts file.

This got me to a new error. This error shows up on the "Checkout Shipping" page. -- "This module supports only xpci version 1.0001 of the UPS Rates Interface."

In the upsxml.log I get this "An error occurred while processing your request. Reference #179.9a5d740.1241024949.654aff"

However, after a few minutes, the UPS sections of the site now seem to be working and providing rate information.

I would obviously like to still know why I would have to put the address of wwwcie.ups.com into the /etc/hosts file for it to resolve. FYI: My resolve.conf points to 4.2.2.2.... and if there is any actual FIX to it.

29 Apr 2009, 7:04 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Interesting UPS XML Curl Error

Is "4.2.2.2" really the appropriate nameserver address to be using?