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
Post a Comment