Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

curl headers

# -i to include response headers in the output.
# -H to specify a header
# -X to specify the request method
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://hostname/resource
Comment

curl check response headers

Just use '-ISs' flag options I:(only headers), sS:(silence and no errors) 
curl www.example -ISs
Comment

PREVIOUS NEXT
Code Example
Shell :: create new file in terminal 
Shell :: linux format disk fat32 
Shell :: sudo rmdir recursive 
Shell :: cloning repository github 
Shell :: Delete untracked file or discard unstaged work 
Shell :: redis install ubuntu 
Shell :: copy from remote server 
Shell :: linux chmod permissions 
Shell :: git cherry pick commit 
Shell :: delete remote commit 
Shell :: how to see deleted commit in git 
Shell :: how to install openvpn connect on ubuntu 20.04 
Shell :: ERROR: Get https://registry-1.docker.io/v2/ 
Shell :: open directory windows command 
Shell :: How to allow permission to my new github account 
Shell :: git reset to a specific commit 
Shell :: download office 365 for ubuntu 
Shell :: cisco anyconnect download for ubuntu 18.04 
Shell :: docker compose stdin_open 
Shell :: cmd file list to text 
Shell :: cron job 
Shell :: commit container to image 
Shell :: shell get unique lines 
Shell :: verify hash windows 10 
Shell :: anaconda for ubuntu 20.04 
Shell :: deleting index.lock 
Shell :: ubuntu default terminal font family 
Shell :: setup cron job 
Shell :: debian install iwconfig 
Shell :: kubectl apply 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =