🖥

Linux の curl コマンドで OPTION のリクエストを送るには curl -X OPTIONS <URL> ( #Linux )

2019/11/13に公開

$ curl -v -X OPTIONS http://example.com

*   Trying 93.184.216.34...
* TCP_NODELAY set
* Connected to example.com (93.184.216.34) port 80 (#0)
> OPTIONS / HTTP/1.1
> Host: example.com
> User-Agent: curl/7.64.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Allow: OPTIONS, GET, HEAD, POST
< Cache-Control: max-age=604800
< Content-Type: text/html; charset=UTF-8
< Date: Wed, 13 Nov 2019 00:11:50 GMT
< Expires: Wed, 20 Nov 2019 00:11:50 GMT
< Server: EOS (vny006/0453)
< Content-Length: 0
<
* Connection #0 to host example.com left intact
* Closing connection 0

Original by Github issue

https://github.com/YumaInaura/YumaInaura/issues/2714

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

https://line.me/ti/g2/eEPltQ6Tzh3pYAZV8JXKZqc7PJ6L0rpm573dcQ

Twitter

https://twitter.com/YumaInaura

公開日時

2019-11-13

Discussion