python 2.7 - Adding of trailing slash with urllib2 -


i refer this.

it seems urllib2.build_opener not add document path (/) if url contains domain name. example web request http://ibm.com result in:

get http://ibm.com http/1.1 

instead of:

get http://ibm.com/ http/1.1 

or:

get / http/1.1 host: ibm.com 

as practiced other http clients such web browsers or .net's httpwebrequest.

is design or bug?


Comments

Popular posts from this blog

javascript - IndexedDB error: Uncaught DataCloneError: Failed to execute 'put' on 'IDBObjectStore': An object could not be cloned -

amazon web services - When using Cognito credentials with AWS in a browser (javascript), keep getting "missing credentials" error -

c# - How to set the datatextfield value instead of the value on a drop down list? -