Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

USPS Shipping Module Error!


eluminous_programmer

Recommended Posts

Posted

Hello,

I have installed USPS module in my site but its throwing error -

An error occured with the USPS shipping calculations.

If you prefer to use USPS as your shipping method, please contact the store owner.

 

I did trace the code and found that the socket connection is establishing successfully but the USPS production server does nt respond with the desired data

I had given call to USPS for shifting my account to their production server.. which is done .

Still the error persists...So i followed up with USPS but usps customer care executive says that this is

OSC script problem and all obligations are over from USPS.

 

To test socket connection to production.shippingapis.com, i have written simple code ----

 

<?php

 

$fp = fsockopen("www.yahoo.com", 80, $errno, $errstr);

$fp = fsockopen("dir.yahoo.com", 80, $errno, $errstr);

 

$fp = fsockopen("production.shippingapis.com", 80, $errno, $errstr);

 

?>

1) connection to www.yahoo.com returned me --

HTTP/1.1 200 OK Date: Mon, 09 Jan 2006 07:33:30 GMT P3P: policyref="http://p3p.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV" Cache-Control: private Vary: User-Agent Set-Cookie: FPB=vi0h542ag11s44ea; expires=Thu, 01 Jun 2006 19:00:00 GMT; path=/; domain=www.yahoo.com Connection: close Transfer-Encoding: chunked Content-Type: text/html 8d15

 

2) connection to dir.yahoo.com returned me --

HTTP/1.1 200 OK Date: Mon, 09 Jan 2006 07:30:36 GMT P3P: policyref="http://p3p.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV" Connection: close Transfer-Encoding: chunked Content-Type: text/html 60bf

 

3) connection to production.shippingapis.com returned me --

HTTP/1.1 403 Access Forbidden Server: Microsoft-IIS/5.0 Date: Mon, 09 Jan 2006 08:04:13 GMT Connection: close Content-Type: text/html Content-Length: 172

 

I think USPS production server should also return me status 200 OK like yahoo servers.

I have all my level best things to get the usps done but :(

Please if anybody can help me as i need to make USPS work as soon as possible!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...