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

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -