Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Support User Agent for web browsing #2020

Closed
asmanmmsj opened this issue Oct 26, 2014 · 7 comments
Closed

Support User Agent for web browsing #2020

asmanmmsj opened this issue Oct 26, 2014 · 7 comments

Comments

@asmanmmsj
Copy link

Hi
i have 2 request for add to wkhtml
1- add a parameter for disable save image and just load and complie web request
2-add a parameter for support User Agent in web requests
some website check user agent in web requests
please add a new parameter like --UserAgent xxx(URL Encoded string)

xxx: my costume user agent string ...
like this
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.137 Safari/537.36

Mozilla/5.0 (Linux; Android 4.2.2; GT-N5100 Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.114 Safari/537.36

Mozilla/5.0 (Windows NT 6.2; ARM; Trident/7.0; Touch; rv:11.0; WPDesktop; NOKIA; Lumia 520) like Gecko

Thanks and Best regards.
ALi

@harmant
Copy link

harmant commented Oct 26, 2014

Passing user-agent - really good idea!

@ashkulz
Copy link
Member

ashkulz commented Oct 31, 2014

You can specify a custom user agent via --custom-header "User-Agent" "my user agent name" --custom-header-propagation.

@asmanmmsj
Copy link
Author

thanks ashkulz it perfect ;)
but how can i disable image saving?
i want only post some data to a web page and load all data of page without create image file
thanks fr helps

@ashkulz
Copy link
Member

ashkulz commented Dec 7, 2014

@asmanmmsj: You should use a tool like PhantomJS in that scenario.

@asmanmmsj
Copy link
Author

thanks ashkulz
i love you ;)

@mitchellkrogza
Copy link

Brilliant @ashkulz you guys really thought of everything, such a great tool which I use on a daily basis.

@jplevene
Copy link

jplevene commented May 2, 2019

Tried
--custom-header "User-Agent" "my user agent name" --custom-header-propagation
but it doesn't seem to work when I query the user agent in JavaScript inside the document.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

5 participants