111

I tried to use cURL but it seems that by default (Debian) is not compiled with HTTPS support and I dont want to build it myself.

wget seems to have SSL support but I found no information on how to generate an OPTIONS HTTP request with wget.

Daniel Stenberg
  • 54,736
  • 17
  • 146
  • 222
sorin
  • 161,544
  • 178
  • 535
  • 806
  • 2
    Are you sure it doesn't support HTTPS? Maybe it's just not willing to accept the remote site's certificate. The `-k` option tells it to ignore certificate errors, and that may help. – Charles Engelke Jan 23 '13 at 14:25

1 Answers1

164

The curl installed by default in Debian supports HTTPS since a great while back. (a long time ago there were two separate packages, one with and one without SSL but that's not the case anymore)

OPTIONS /path

You can send an OPTIONS request with curl like this:

curl -i -X OPTIONS http://example.org/path

You may also use -v instead of -i to see more output.

OPTIONS *

To send a plain * (instead of the path, see RFC 7231) with the OPTIONS method, you need curl 7.55.0 or later as then you can run a command line like:

curl -i --request-target "*" -X OPTIONS http://example.org
Community
  • 1
  • 1
Daniel Stenberg
  • 54,736
  • 17
  • 146
  • 222