JochenG Posted January 11, 2023 Share Posted January 11, 2023 Hello, I have a Python Script that requests another url. some URLs (like google.com) work, my own not. Here is the code: import requests response = requests.get("http://8pxtrp24kvius8v8.myfritz.net:8021/consumption") print("Response code:", response.status_code) print("Response formatted as text:",response.text) print("Response formatted in bytes:",response.content) print("Response Headers:",response.headers) The code seems ok, I can run it e.g. on https://www.educative.io/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.