Thanks for your question.
The "401 Unauthorized" error can be caused by the following problems:
/ /. , , , , - , Purolator, . , . , Purolator, . ( , , ":", "$" .., escape-)
.
, . , "DEV" () URL- :
, PHP: "location" = > "https://devwebservices.purolator.com/PWS/V1/ShippingDocuments/ShippingDocumentsService.asmx" ( )
Production: "location" = > "https://webservices.purolator.com/PWS/V1/ShippingDocuments/ShippingDocumentsService.asmx" ( )
Purolator (-) : http://purolatorwebservices.com
,
- Purolator E-Ship
webservices@purolator.com