Skip to main content

All Questions

Tagged with
0 votes
0 answers
42 views

Python Sockets Specify Signature Algorithm in Client Handshake

I'm currently writing my own https webserver at home which complies with (or will comply with, when I'm done with it, as I'm writing the webserver in C++) TLS 1.3. I have a Python client that I want ...
Krohnus Melavea's user avatar
0 votes
0 answers
80 views

HTTPS with python and own server apache

we have a python client (on windows) and an apache server (centos) We want to enable SSL connection between client and server so: we generated certificate and private key like this on server: openssl ...
jeyzorus's user avatar
  • 125
-2 votes
1 answer
462 views

"Please use a modern browser" error when reading a REST API

I am trying to read a REST API from my Windows 10 laptop in VS Code in a python 3.11 script using the requests module. I finally got the API access to work after getting the latest .pem file but now ...
lem's user avatar
  • 129
0 votes
0 answers
29 views

How to get redirected url in Python?

I have a list of url to songs' tiktok page url in the form of f'https://www.tiktok.com/music/-{songid}'. If I enter it in my browser, I'll be redirected to a page with a longer url, which is what I ...
iim7b5-v7-im7's user avatar
0 votes
1 answer
255 views

Securely Serve Static File Over HTTP Get Request In Python

I need to serve static files, like images and videos through URLs securely. That is, I need to password protect them. Is there any way I can prompt a password input when the user visits the URL or ...
Neha's user avatar
  • 159
1 vote
1 answer
278 views

How could i make a discord slash command bot that sends http requests and returns info as an embed

eg. user sends a command /findsomething [something: ] where "something" is compulsory the value in the "something" variable is then stored in a variable and used in the link of a ...
wdp's user avatar
  • 25
0 votes
2 answers
207 views

Python POST to API requests issue

I've been working on making API tests with pytest on Python 3.10.10 and I have stumbled on an issue with a post request. Here is the code I currently have: import requests as req api = 'some api' ...
chocho.boss's user avatar
0 votes
0 answers
511 views

Python: Can We SSL wrap any http server to https server?

This is a simple HTTPS python server (not for production use) # libraries needed: from http.server import HTTPServer, SimpleHTTPRequestHandler import ssl , socket # address set server_ip = '0.0.0.0' ...
Pradeep Padmanaban C's user avatar
8 votes
5 answers
11k views

How do I get Python to send as many concurrent HTTP requests as possible?

I'm trying to send HTTPS requests as quickly as possible. I know this would have to be concurrent requests due to my goal being 150 to 500+ requests a second. I've searched everywhere, but get no ...
Pengalor's user avatar
  • 190
0 votes
0 answers
983 views

urllib.error.URLError: <urlopen error Tunnel connection failed: 403 URLBlocked>

i am trying to scrap weather and pollution data from openweathermap through python, i am using urllib and the URL i try to access is HTTPS, here is my code : api_key = self.dict_config["api_key&...
FrozzenFinger's user avatar
1 vote
0 answers
723 views

HTTP Error 401 unauthorized when using python requests package with user-agent header

I am trying to reverse engineer a web app. So far, using the inspect tool on my browser, I have managed to log in the website using python and use multiple parts of the application. Short example: # ...
MattSt's user avatar
  • 1,193
1 vote
1 answer
500 views

dnf.base.fill_sack() -- how to use the certs in yum.conf?

I have cert information for using HTTPS in my repos stored in /etc/yum.conf at the bottom: [main] cachedir=/var/cache/yum/$basearch/$releasever keepcache=0 debuglevel=2 logfile=/var/log/yum.log ... ...
KnightShadeX's user avatar
-1 votes
1 answer
578 views

How to "log in" to zalando.de using Python's Requests module?

Regardless of Zalando usually blocking any requests traffic (I already know how to get around this), how can I detect the Post method that Zalando uses to login me in using their form zalando.de/...
Gordian's user avatar
  • 175
3 votes
0 answers
3k views

how to https hosting in python http.server.SimpleHTTPRequestHandler

I am using python http.server.SimpleHTTPRequestHandler to create an http server using below code Handler = http.server.SimpleHTTPRequestHandler with socketserver.TCPServer(("", PORT), ...
kailashdesiti's user avatar
3 votes
1 answer
5k views

Windows 2019, Python 3.9.7, urllib, certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)

Python scripts on Windows 2019 have started to fail for me, apparently due to botched local truststore and I seem to be unable to make it right. Stacktrace C:\tmp\DEL (master -> origin) λ python ...
Michal Karm Babacek's user avatar

15 30 50 per page
1
2 3 4 5 6