How do I check what user agent curl is using? -


I'm trying to use curl to monitor the contents of the page provided by a remote HTTP server (which is my There is very little control over the over), and for some reason the server is returning different results, depending on which machine I'm running I suspect that this user may be curl on each machine due to the difference in string Is being used.

How do I check (not set) User Agent String Curl Remote server is sending in your HTTP request

Use the option to see all the headers sent by curl, in which user-agent :

'& gt; Which means "Header data" sent by curl

For example:

  $ curl --verbose 'http://www.google.com / '& Gt; GET / HTTP / 1.1 & gt; User-agent: Curl / 7.37.0 & gt; Host: www.google.com & gt; Accept: * / *    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -