How to convert password protected web pages to PDF file or image file?

Quick question:

I am trying to save urls to images (jpgs, etc.).

But the sites require a username and password --- which I have.

I can embed the username and password in the urls.

Will you system support that?

If not, how does it work for sites that needs login?

Thanks!
Customer
-------------------------------------------------

image
Thanks for your message, our htmltools.exe application does support "-postdata" option, you can use this option to post username and password to the web page, this option can be used to support password protected web pages,

http://www.verypdf.com/htmltools/htmltools-manual.htm
http://www.verypdf.com/app/html-converter/try-and-buy.html#cmd

-postdata <string>: Set the data to be posted to the URL. Use this function for some urls protected by forms.

2.5.3 How to post user name and password to a URL

Set the data to be posted to the URL. Use this function for some urls protected by forms.

-postdata <string>

htmltools.exe -postdata "UserName=xxxxxx&Password=xxxxxx" http://www.totalshareware.com/ASP/login.asp D:\output.pdf

This function is used to encrypt an HTML page, and the arguments following "-postdata" is the content automatically added to the form. Usually, PostData has two parts: header and content. The header is the form "Content-Type: application/x-www-form-urlencoded", and the content can be the form of "user=xxx;password=xxx". htmltool.exe can build a header automatically, so users need to input only the content.

Additional information:

In HTML, one can specify two different submission methods for a form. The method is specified inside a FORM element, using the method attribute. The method attribute of the FORM element specifies the HTTP method used to send the form to the processing agent. This attribute may take two values:

method = get | post

where, with the HTTP "get" method, the form data set is appended to the URI specified by the action attribute (with a question-mark ("?") as separator) and this new URI is sent to the processing agent; with the HTTP "post" method, the form data set is included in the body of the form and sent to the processing agent.

The "get" method should be used when the form is idempotent (i.e., causes no side-effects). Many database searches have no visible side-effects and make ideal applications for the "get" method. If the service associated with the processing of a form causes side effects (for example, if the form modifies a database or subscription to a service), the "post" method should be used.

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

This entry was posted in HTML Converter (htmltools) and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!