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 25, 2008telnet won't convert \r\n to carriage returns and line feeds, so that shouldn't work. If you want to use telnet to test, you can manually replace the \r\n's with the enter key.
You can use echo with the -e flag to convert the characters. You can then pipe that output to netcat to open a TCP connection to the server and send the string:
echo -e "GET /default.asp 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: myserver.mydomain.com\r\nConnection: close\r\n" | netcat 10.10.10.10 80
You should see the server's response in the netcat output.
Aaron
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
