Skip to main content

All Questions

Tagged with
0 votes
1 answer
29 views

Posting to API with cURL works while Python requests fails

I have a cURL command that works when uploading a file while the equivalent Python requests fails. Here is the cURL command curl -X POST "http://<DOMAIN>/polarion/rest/v1/projects/<...
barneyAgumble's user avatar
0 votes
1 answer
65 views

URLDAY API Not working according to published docs

I am trying to use URLDAY's API to do anything, but any call returns an error, weather it is from Python code, or from CURL. Example: curl --location \ --request POST 'https://www.urlday.com/api/...
Gulzar's user avatar
  • 28.3k
0 votes
1 answer
46 views

HTTP certificate file authentication works fine with curl, with openssl, but not with Python module "requests"

I'm trying to make a post via "requests" in python, on a url where client certificate authentication is mandatory. Certificates are production ones (not self signed) Script is simple : ...
Julien's user avatar
  • 528
-7 votes
1 answer
160 views

What is the difference between python requests and cURL? [closed]

I have the following situation. I send a request from 3 sources (postman, cURL and python requests library). For Postman and cURL I receive the same response but for python requests library I get a ...
Adrian B's user avatar
  • 1,630
0 votes
1 answer
900 views

Why is Python httpx.get or requests.get much slower than cURL for this API?

For a home automation project I am trying to pull train delay data. An API wrapper exists, with cURL examples. These work fine, but both Python's requests.get and httpx.get are slow to pull data (up ...
0xDEADBEEF's user avatar
-1 votes
2 answers
332 views

How do I acccess the Bright data proxies response headers

I am using Bright data as the proxy proivider along with python requests.session. I am directly making proxy requests to the proxy zones so it can randomly pick it up, now what I want is to know which ...
Chirag Goel's user avatar
0 votes
0 answers
68 views

Issues with large file download using pycurl resulting in "502 Bad Gateway" error

I'm currently facing an issue with pycurl while trying to download a somewhat large file from a remote server. Despite trying different methods, I consistently encounter a "502 Bad Gateway" ...
stillQuestioning's user avatar
0 votes
1 answer
100 views

Using requests I get a 401 but urllib3 and curl work

The following urllib code works to connect to the using the : import urllib3 import json # Initialize a PoolManager instance http = urllib3.PoolManager() # Define the URL, headers, and data url = &...
doom4's user avatar
  • 695
1 vote
1 answer
887 views

Python requests and cURL never return a response

I am attempting to scrape the NSE website for a particular company, in Python. I am attempting this using the requests library and it's corresponding get() method. This should return a .html file, ...
Shirsak's user avatar
  • 57
0 votes
2 answers
225 views

GET request times for apartments.com, but website is not down

I am trying to make a GET requests to https://apartments.com. However, the request is just timing out or hanging forever. The page loads just fine in the browser, so the web server isn't just down. I'...
Sam Hill's user avatar
  • 156
0 votes
1 answer
207 views

HTTPS GET with API Bearer Token: working with cURL but not with Python requests.get

When I launch the following cURL command on a https URL with an API token, I get the expected response (a list of files in my storage): curl -H "Authorization: Bearer <TOKEN>" "...
Jean-Francois T.'s user avatar
0 votes
1 answer
40 views

Request gets denied with 403 when triggered from script

I am writing a script to impersonate a browser. Just as browser logs in to a WebApp/Website, get cookie and use that cookie for further request, I am doing the same using scripts. I am able to login, ...
Faiz Ali's user avatar
  • 141
0 votes
0 answers
902 views

Failed to perform, ErrCode: 35, Reason: 'Recv failure: Connection was reset'. error while requesting to twitter

my code is async def request_username(self): url = "https://twitter.com/i/api/1.1/account/settings.json" response, response_json = await self.request("POST", url) self....
themarket's user avatar
0 votes
0 answers
118 views

Python requests doesn't work but cURL does to PUT file

I'm having trouble making an api request using python's request lib. I have tested the endpoint using cURL and it works, but something in my python code makes the api call fail with status 500. My ...
Diogo Vala's user avatar
0 votes
1 answer
126 views

curl working but postman, python requests, wget not working

This curl is giving excepcted response when I hit cURL directly in the terminal. But does give me 403 html page when I use postman, Python requests or any other way like wget, powershell etc. curl '...
Harsh Rao's user avatar

15 30 50 per page
1
2 3 4 5
39