Skip to content

Conversation

@R4wd0g
Copy link

@R4wd0g R4wd0g commented Nov 26, 2025

Replace http.client with urllib.request

Simplify HTTP request handling by using urllib.request instead of low-level http.client.

Benefits

  • ✅ Automatic proxy support
  • ✅ Automatic redirect handling
  • ✅ Better error handling

Changes

  • Replaced manual connection management with urlopen(Request(...))
  • Removed unused helper methods (create_connection(), get_host_port())
  • Enhanced JSON parsing exception handling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant