httplib usage for images

Thomas Güttler guettler at thomas-guettler.de
Tue Aug 19 07:08:36 EDT 2003


berklee just berklee wrote:

> I have an ASP page which is returning a chart image that's being
> dynamically generated (by writing to the response object).
> 
> When I try and access that page with httplib (to download said image), I
> keep encountering an HTTP1.1 server error. However, I've tried the same
> URL in Internet Explorer and Mozilla with no problems at all.
> 
> Is there a possibility that it could be the httplib module causing the
> error? If so, anyone have a suggested workaround?


Maybe you need to add a slash to your url.
Example: Your browser redirects you from 
http://www.python.org/doc to 
http://www.python.org/doc/

If this does not help, please send the error message of 
httplib 

thomas




More information about the Python-list mailing list