Linux command
https 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
GET request over HTTPS
https [https://api.example.com/users]
POST with JSON
https POST [url] name=value
Skip certificate verification
https --verify no [url]
Custom headers
https [url] Authorization:"Bearer token"
Download file
https --download [url]
说明
https is an alias or variant of HTTPie for HTTPS requests. It provides the same user-friendly interface with SSL/TLS by default. The tool emphasizes secure connections while maintaining HTTPie's intuitive syntax. It's useful for API testing over HTTPS.
参数
- --verify _MODE_
- SSL verification (yes/no).
- -d, --download
- Download file.
- -v, --verbose
- Verbose output.
- --cert _FILE_
- Client certificate.
- --help
- Display help information.
FAQ
What is the https command used for?
https is an alias or variant of HTTPie for HTTPS requests. It provides the same user-friendly interface with SSL/TLS by default. The tool emphasizes secure connections while maintaining HTTPie's intuitive syntax. It's useful for API testing over HTTPS.
How do I run a basic https example?
Run `https [https://api.example.com/users]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --verify _MODE_ do in https?
SSL verification (yes/no).