set the user agent to use in VeryPDF HTML Converter (htmltools)

is there a parameter to set the user agent to use in VeryPDF HTML Converter (htmltools) on the command line?
=====================================
You can set the proxy in IE, htmltools does use the proxy in IE automatically.

VeryPDF
=====================================
thanks for the reply.
I know about the proxy configuration, but I have to set the *user-agent* on each request.

It's quite important for us, we might even order a special development for it. Can you estimate the implementation and send me an offer for it? (We need it in the command line version.
=====================================
Thanks for your message, I want to know the details about your "user-agent", is it same as proxy configuration in IE?

Is following command line option okay to you?

Htmltools.exe -proxy 192.168.1.10:7070 https://www.verypdf.com C:\out.pdf

The -proxy parameter in above command line will be used to download the web page, is this parameter that you want to get? If yes, please feel free to let us know, we will provide a quotation for this function to you shortly.

VeryPDF
=====================================
no, the user agent is the browser identifier, which is automatically sent by the browser in http header fields to the server.

For example IE7 sends "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)"

See http://tools.ietf.org/html/rfc1945#section-10.15  and http://en.wikipedia.org/wiki/User_agent

There are few ways to change it on the fly (normally the only way to do it is by changing the registry, but then it only works when the browser is restarted). See http://www.lukepaynesoftware.com/articles/programming-tutorials/changing-the-user-agent-in-a-web-browser-control/

a)    We tested all options and the best one is to use the UrlMkSetSessionOption function
b)    The navigate() option has some problems with Frames and iframes, but maybe it is the easiest to implement for you.
a.    webBrowser1.Navigate ("http://www.whatsmyuseragent.com", "_self" , null, "User-Agent: Luke's Web Browser");

If you could add this as a new command line parameter and change the navigate function I would be happy to test it for you.

=====================================
One remark: I discussed with our engineer and it seems that to use UrlMkSetSessionOption function is the better solutions. Not sure if this makes a difference for you.

Anyway, I will be out of the office for the next 2 weeks and will contact you again only when I’m back.
In case we need something more urgently I did put my colleague on CC so he has your contact information as well.
=====================================
Thanks for your message, UrlMkSetSessionOption() function seems good, we will also research this function shortly.

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

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!