Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

command to hit url in linux

There are lots of ways:

nc www.example.com 80: upside is you have full controll over what you send, downside is you are on your own. Restrict to HTTP 1.0 to minimize the things you need to type GET / HTTP/1.0 followed by an empty line is all you need.

curl http://www.example.com/: good for normal use and debugging. Has lots of options. Especially usefull: --verbose to see the HTTP request/response and --head to send a HEAD request (no body).

openssl s_client -connect www.example.com:443: Useful for debugging HTTPS servers.

wget: good for download and maybe more.

w3m, lynx, links: text-only browser.

Comment

PREVIOUS NEXT
Code Example
Shell :: share folder on network linux 
Shell :: free ssl certificate for nginx 
Shell :: how to restore default apache httpd conf file 
Shell :: upload transfer.sh 
Shell :: kill process by name 
Shell :: kali linux nit signing in 
Shell :: delete a branch in git command 
Shell :: zsh for 
Shell :: chown recursive 
Shell :: how to run r in docker 
Shell :: insert bash command to docker-compose file 
Shell :: step7 pgadmin ubuntu 20.04 
Shell :: install rabbitmq in ubuntu 20.04 
Shell :: how to clone repo and change name 
Shell :: diskpart 
Shell :: mount a folder from windows inside wsl 
Shell :: anaconda for ubuntu 18.04 
Shell :: $() vs () bash 
Shell :: ubuntu path of saving screenshots 
Shell :: linux change directory 
Shell :: install nginx on ec2 
Shell :: append newline to file 
Shell :: uncommit the last commit 
Shell :: gnu octave ubuntu 
Shell :: fedora error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory 
Shell :: awk use string as field separator 
Shell :: pgadmin terminal connect 
Shell :: how to change your bash setup 
Shell :: removing a file in linux 
Shell :: install pip mac 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =