“Python żąda portu” Kod odpowiedzi

Python żąda portu

import requests

requests.get("http://myServer.com:4000")

:4000 means port 4000
John Appleseed

Port żądania Pythona

#Well, I was missing the basis.
#When you perform an HTTP request, requests will try to connect on port 80.
#For HTTPS, requests will try to connect on port 443.
#If you want an exotic port such as 8080 this is how you should do it :

resp = requests.get(http://example.com:8080)
Djebbes Rabah

Odpowiedzi podobne do “Python żąda portu”

Pytania podobne do “Python żąda portu”

Więcej pokrewnych odpowiedzi na “Python żąda portu” w Python

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu