All Questions
2,025 questions
0
votes
1
answer
42
views
403-response when doing a python request?
i try to do a get request using the follwing code -
(i have taken the get response from this site:
https://www.marinetraffic.com/en/ais/home/centerx:-15.7/centery:25.1/zoom:3
copied it with right ...
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/<...
-1
votes
0
answers
28
views
Python with curl_cffi 0.10 - Is there a "wait for page load" option OR what should I use?
This is the URL in question:
https://www.lowes.com/pd/Metrie-Primed-Pine-Finger-Joint-Casing-9-16x2-1-4x7-5pc/5013107465
Is there a way to wait using curl_cffi? I believe the expected page is not ...
1
vote
2
answers
164
views
Receiving an ERR_HTTP2_PROTOCOL_ERROR sporadically when web scraping with python selenium chromedriver, but same request works as CURL
I have a fairly basic scraper set up to loop through a list of real estate agent profiles on Homes.com. My scraper worked consistenly for months, but then sporadically starts getting these sporadic ...
0
votes
0
answers
36
views
Generating JWT token to make requests to Apple
I am using the following code to make a request to Apple. Then I make the following curl request but I'm getting a 401. How can I resolve this?
from datetime import datetime, timedelta
from time ...
0
votes
2
answers
93
views
Why does calling curl solve my SSL issues in Python on Windows
This is a pretty bizarre issue. I have created a fresh Windows 11 VM using VMware Fusion on Mac. I installed VMware Tools and Python on it
winget install -e --id Python.Python.3.11
I start python ...
-1
votes
1
answer
45
views
httpx Library vs curl program
I am trying to use the httpx library to POST a file through a website provided API. The API requests some additional headers.
Here is my Pyhton script:
#!/usr/bin/python3
import httpx
files = {'file':...
0
votes
0
answers
42
views
403 Error When Running Python Request Code on Ubuntu Server, Works Fine on Windows
I’m trying to run a script on an Ubuntu server to make an HTTP request to an endpoint, but I keep getting a 403 Forbidden error. When I run the same script on my Windows PC, it works fine and returns ...
2
votes
0
answers
69
views
Curl request returns Error 401: No authorization token provided, even if the swagger api-key is present
I developed a server that takes a csv file and write it in the cloud using python 3.10 (connextion, flask) and swagger v2. It worked just fine, all curl requests have returned 200 and the file have ...
1
vote
0
answers
51
views
How do I upload a raw artifact with custom attributes to a Nexus repository using cURL
I am creating a python script to iterate through a tree and upload all the artifacts to a raw Nexus repository. I am not familiar with Nexus, but I would like to include individual file specific ...
0
votes
1
answer
72
views
Fail to convert curl to python cdoe
I'm trying to crawl data from a website.
I can run below script using curl and get response data.
curl 'https://gappapi.deliverynow.vn/api/dish/get_delivery_dishes?id_type=2&request_id=112049' \
...
0
votes
0
answers
27
views
Flask is closing https connections even after setting WSGIRequestHandler.protocol_version to http/1.1
We need to write a flask application which should not close the connection after serving the client. Below is the python code
from flask import Flask, request, make_response, jsonify
from werkzeug....
0
votes
1
answer
66
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/...
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 :
...
-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 ...