Issues with HTTPS endpoints behind a proxy server
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- cli, networking
Direzione di ricerca
Inizia in pwclient.xmlrpc e confronta come vengono gestiti gli endpoint HTTP e HTTPS tramite proxy. Verifica che il caso HTTPS stabilisca un tunnel CONNECT prima di inviare la richiesta, mantenendo al contempo il comportamento attuale per gli endpoint HTTP. Il lavoro è completato quando gli endpoint HTTPS funzionano tramite proxy HTTP e HTTPS.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hello,
The code in pwclient.xmlrpc fails when a proxy server is used (either HTTP or HTTPS) and the remote endpoint is served over HTTPS.
That's because the code attempts to proxy the request using a non-standard way, e.g.
POST https://somehost/api/ HTTP/1.1
...
Instead it should use the standard CONNECT method to first establish an SSL tunnel with the remote server and then send the request the usual way:
CONNECT https://somehost/ HTTP/1.1
(wait for confirmation that the tunnel has been set up)
POST /api/ HTTP/1.1
...
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Proxy_servers_and_tunneling#http_tunneling for more information.
Please note that this only affects connects to an HTTPS endpoint behind a proxy. For HTTP endpoints, the current code does a proper job (in this case, using a fully qualified URL is the right way to proxy the request).
Best regards,
François
- Lingua principale
- Python
- Stelle
- 55
- Fork
- 26
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di getpatchwork/pwclient
-
enhancement good first issue
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
getpatchwork/pwclient#31 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
getpatchwork/pwclient#28 · 1 commento ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
getpatchwork/pwclient#15 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
getpatchwork/pwclient#4 ·
Tutte le issue di getpatchwork/pwclient
Issue simili
-
bug confirmed issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
open-webui/open-webui#30750 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
OpenwaterHealth/openmotion-bloodflow-app#604 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100