Skip to content

Add httpclient module, using custom httphandler to do POST request#6

Open
aware-why wants to merge 1 commit intonesies:masterfrom
aware-why:master
Open

Add httpclient module, using custom httphandler to do POST request#6
aware-why wants to merge 1 commit intonesies:masterfrom
aware-why:master

Conversation

@aware-why
Copy link

It's better for urllib2_file not to change the global variable urllib2._opener but to use temporary opener object generated by urllib2.build_opener(), otherwise, maybe it will influence other modules who are also using urllib2
in the same process.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just return the request object directly, to shield the builtin http_request method in urllib2.AbstractHTTPHandler.

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