All Questions
16 questions
-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 ...
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" ...
0
votes
1
answer
1k
views
Python equivalent of CURL with username and api token
I want to write the following curl command into python code. Following is the command for requesting some data from the URL.
<user_name> : replace with the username
<api_token> : replace ...
0
votes
1
answer
424
views
How to convert specific CURL request to Python
I have the following Curl request:
curl -v --location --request POST 'http://127.0.0.1:8080/abc' \--header 'Content-Type: application/json' \--data-raw '{data}'
I tried using pycurl and requests ...
1
vote
2
answers
1k
views
Extract Id's from response.text()
I want to extract all the values of id's from the following response (finding).
code:
findings= requests.get('https://api.probely.com/targets/TaargetID/findings/36',headers={"Content-Type": &...
1
vote
2
answers
578
views
How to get the original curl request from pycurl?
Is there any way if i use,
crl = pycurl.Curl()
crl.setopt(pycurl.URL, "www.google.com")
i need to print the original curl request for troubleshooting
curl www.google.com
1
vote
1
answer
520
views
Python HTTP GET raise Exception after 300 seconds from Docker container
I'm trying to GET data from an external service using Python from a Docker container.
I need to reach two different endpoints, let's say:
endpointA = "https://myhost:1234/resA" # Requests ...
0
votes
2
answers
302
views
How can this curl command be converted to pycurl or python requests?
any hel pwill be highly appreciated. Just can't make this to work. I am basically trying to update my Grafana dashboard via a http request. managed to get it to work with curl but want to do this with ...
0
votes
0
answers
421
views
Conversion from curl command into python code using pycurl and request not working
I have this curl command that I want into python code
command = ' curl -k -u test:123 -H "Content-type: application/json" --digest "https://192.168.0.10/restapi/config/minutes/"'
The command works ...
0
votes
1
answer
561
views
How to upload file by PUT on python without opening the file
Problem:
1) Need a python library which accepts path of file instead of opening the file(as it can be huge) to make a PUT request.
2) Also want that library to automatically do the redirect if exists(...
1
vote
2
answers
714
views
Python -- Curl works, requests lib doesn't
This works from the command line:
curl -H "Content-Type: application/json" -X POST -d '<my data>' http://my_user:my_pass@my_url
This doesn't work from a python script:
res=requests.post(
'...
0
votes
0
answers
328
views
convert curl command to python [pycurl or request or anythings!]
I`m try to post a data to specific url and get response and save it in the file with curl and no problem with it.
This webpage post a data and if data is correct show response webpage, and if not ...
1
vote
2
answers
960
views
Transforming curl command into Python pycurl or requests
Trying to use this curl command, in Python:
curl -k -X POST --data "action=login&username=user&password=pass" https://localhost:8443
I already tried using pycurl as the following:
import ...
4
votes
2
answers
8k
views
Converting PHP curl_setopt() to Python Requests and to CLI curl
I am trying to convert the following PHP curl_setopt() to the equivalent within Python Requests as well as for CLI curl. For Python, if not possible in Requests, I will resort using pycurl.
...
1
vote
0
answers
362
views
Use Requests instead of PyCurl, login with cookies
I actually use pycurl for requests to a specific site.
https://uniparthenope.esse3.cineca.it/
The login method isn't by post request.
I use pycurl in this way:
page = BytesIO()
cookie=...