I'm passing headers to faster_than_requests but it gives 400 Bad request.
this is my code sample:
import faster_than_requests as requests
headers = [("Host", "api.sample.com"), ("Connection", "Keep-Alive"), ("Accept-Encoding", "gzip")]
response = requests.post(url=self.offer_url, body=self.offer_data, http_headers=headers, proxy_url=self.proxyURL)
print(response["status"])
any help would be greatly appreciated. I currently use the requests library but is too slow.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm passing headers to faster_than_requests but it gives 400 Bad request.
this is my code sample:
import faster_than_requests as requests
headers = [("Host", "api.sample.com"), ("Connection", "Keep-Alive"), ("Accept-Encoding", "gzip")]
response = requests.post(url=self.offer_url, body=self.offer_data, http_headers=headers, proxy_url=self.proxyURL)
print(response["status"])
any help would be greatly appreciated. I currently use the requests library but is too slow.