michaelrsweet / htmldoc

HTML Conversion Software
https://www.msweet.org/htmldoc
GNU General Public License v2.0
208 stars 47 forks source link

image conversion on sites using basic authentication #145

Open michaelrsweet opened 17 years ago

michaelrsweet commented 17 years ago

Version: 1.10-feature Original reporter:

Hello, I'm having a problem with getting html pages with images linked in them converted so the images show up in the resulting PDF file. The problem is that the site the images are on uses basic authentication for access control, and htmldoc is returning ERR401: Unauthorized for each image reference. Can a feature be added to HTMLDOC so that a username/password combination can be passed as a commandline argument to force authentication of image requests? Thanks -- GM

michaelrsweet commented 17 years ago

Original reporter:

I had an additional thought on this -- it might be helpful to be able to specify that image requests from a particular domain be treated as local file references as opposed to HTTP/HTTPS requests. How this would be implemented is questionable, but might be a viable alternative.

michaelrsweet commented 16 years ago

Original reporter: Michael Sweet

Pushing to 1.10, but you can already use the --path option to specify alternate search locations for image files.