urllib2 - My POST Request just isn't working right

Eric Nieuwland eric.nieuwland at xs4all.nl
Wed Feb 1 11:11:24 EST 2006


Hi Greg,

> values = {'request':xml_request}
> headers = { 'Referer' : 'YourCompany',
>             'Host':'https://gatewaybeta.fedex.com/GatewayDC',
>             'Accept':'image/gif, image/jpeg, image/pjpeg, text/plain,
> text/html, */*',
>             'Content-Type':'image/gif'
>             }

Could it be Host? It should be "gatewaybeta.fedex.com" AFAIKT

--eric




More information about the Python-list mailing list