Forum Discussion
Stephen_Winter
Cirrus
Jan 24, 2008Setting UserAgent for Monitoring?
Hi All,
I'm not real familiar with the internal working of http, but I'm trying to setup a monitor on some web server to check for content and it's failing because the server checks Browser...
hoolio
Cirrostratus
Jan 24, 2008Hi,
You can specify the User-Agent header with a custom value in the send string of an HTTP or HTTPS monitor. This will work as an example for either:
GET /path/to/file.ext HTTP/1.1\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11\r\nHost: \r\nConnection: close\r\n
That all needs to be on one line in the send string field of the monitor. The receive string could be 200 OK.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects