Skip to main content
capital POST
Source Link
zainengineer
  • 14k
  • 6
  • 40
  • 29

The Following command displays extra informations

curl -X POST http://httpbin.org/post -v > /dev/null 

You can ask server to send just HEAD, instead of full response

curl -X HEAD -I http://httpbin.org/ 

Note: In some cases, server may send different headers for postPOST and HEAD. But in almost all cases headers are same.

The Following command displays extra informations

curl -X POST http://httpbin.org/post -v > /dev/null 

You can ask server to send just HEAD, instead of full response

curl -X HEAD -I http://httpbin.org/ 

Note: In some cases, server may send different headers for post and HEAD. But in almost all cases headers are same.

The Following command displays extra informations

curl -X POST http://httpbin.org/post -v > /dev/null 

You can ask server to send just HEAD, instead of full response

curl -X HEAD -I http://httpbin.org/ 

Note: In some cases, server may send different headers for POST and HEAD. But in almost all cases headers are same.

more concise note
Source Link
zainengineer
  • 14k
  • 6
  • 40
  • 29

The Following command displays extra informations

curl -X POST http://httpbin.org/post -v > /dev/null 

You can ask server to send just HEAD, instead of full response

curl -X HEAD -I http://httpbin.org/ 

Note: Correctly configured/programmed web servers will response differently than theIn some cases, server may send different headers for post because it is aand HEAD request not POST. But works most of the timein almost all cases headers are same.

The Following command displays extra informations

curl -X POST http://httpbin.org/post -v > /dev/null 

You can ask server to send just HEAD, instead of full response

curl -X HEAD -I http://httpbin.org/ 

Note: Correctly configured/programmed web servers will response differently than the post because it is a HEAD request not POST. But works most of the time

The Following command displays extra informations

curl -X POST http://httpbin.org/post -v > /dev/null 

You can ask server to send just HEAD, instead of full response

curl -X HEAD -I http://httpbin.org/ 

Note: In some cases, server may send different headers for post and HEAD. But in almost all cases headers are same.

only one v in -v is enough
Source Link
zainengineer
  • 14k
  • 6
  • 40
  • 29

The Following command displays extra informations

curl -X POST http://httpbin.org/post -vvvv > /dev/null 

You can ask server to send just HEAD, instead of full response

curl -X HEAD -I http://httpbin.org/ 

Note: Correctly configured/programmed web servers will response differently than the post because it is a HEAD request not POST. But works most of the time

The Following command displays extra informations

curl -X POST http://httpbin.org/post -vvv > /dev/null 

You can ask server to send just HEAD, instead of full response

curl -X HEAD -I http://httpbin.org/ 

Note: Correctly configured/programmed web servers will response differently than the post because it is a HEAD request not POST. But works most of the time

The Following command displays extra informations

curl -X POST http://httpbin.org/post -v > /dev/null 

You can ask server to send just HEAD, instead of full response

curl -X HEAD -I http://httpbin.org/ 

Note: Correctly configured/programmed web servers will response differently than the post because it is a HEAD request not POST. But works most of the time

HEAD request should be handled differently than POST request
Source Link
Loading
Loading
simpler and uses httpbin
Source Link
zainengineer
  • 14k
  • 6
  • 40
  • 29
Loading
a simpler approx approach
Source Link
zainengineer
  • 14k
  • 6
  • 40
  • 29
Loading
added 2 characters in body
Source Link
zainengineer
  • 14k
  • 6
  • 40
  • 29
Loading
Note on HEAD vs post
Source Link
zainengineer
  • 14k
  • 6
  • 40
  • 29
Loading
capitalise I to avoid curl warnings
Source Link
zainengineer
  • 14k
  • 6
  • 40
  • 29
Loading
Source Link
zainengineer
  • 14k
  • 6
  • 40
  • 29
Loading