Forum Discussion
Subrun
Cirrostratus
Apr 15, 2019How to run GET command in F5 CLI
Hello All,
Probably one of the silly question.
GET /index.html HTTP/1.1\r\nHost: host.domain.com\r\nConnection: Close , i want to run this send string command from CLI of F5 to see in repl...
Kai_Wilke
MVP
Apr 15, 2019Hi Subrun,
you may take one of the CLI commands below...
Sending a HTTP request using default Route Domain use this command:
printf 'GET / HTTP/1.1\r\nHost: www.domain.de\r\nConnection: Close\r\n\r\n' | nc 1.2.3.4 80
Sending a HTTPS request using default Route Domain use this command:
printf 'GET / HTTP/1.1\r\nHost: www.domain.de\r\nConnection: Close\r\n\r\n' | openssl s_client -quiet -host 1.2.3.4 -port 443
Sending a HTTP request using Route Domain %10 use this command:
rdexec 10 printf 'GET / HTTP/1.1\r\nHost: www.domain.de\r\nConnection: Close\r\n\r\n' | nc 1.2.3.4 80
Sending a HTTPS request using Route Domain %20 use this command:
rdexec 20 printf 'GET / HTTP/1.1\r\nHost: www.domain.de\r\nConnection: Close\r\n\r\n' | openssl s_client -quiet -host 1.2.3.4 -port 443
Cheers, Kai
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
