Skip to content

Tag: curl

Can’t convert curl to python request

I copied request as CURL with help of dev-tools and received: Copied request to console (curl works fine). Received result Converted curl to python requests with help of https://curl.trillworks.com/ Received: Tried this code and received error Body is not valid Latin-1. Use body.encode(‘utf-8’) if…

Curl works but urllib doesn’t [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself. Closed 8 years …