unix

How can I test to see what happens for a specific User-Agent?

You may have set up specific actions or redirects based on the User-Agent. To impersonate a browser, you can use this approach:

curl -A “Mozilla/5.0 (compatible; MSIE 7.01; Windows NT 5.0)” http://www.mytechforum.com

To see the Apache code, you can use the -I flag like this:

curl -A “Mozilla/5.0 (compatible; MSIE 7.01; Windows NT 5.0)” http://www.mytechforum.com -I

Click to comment

Leave a Reply

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

To Top