Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/javascriptdude/http_debug
Basic bash function for troubleshooting http sites
https://github.com/javascriptdude/http_debug
Last synced: about 2 months ago
JSON representation
Basic bash function for troubleshooting http sites
- Host: GitHub
- URL: https://github.com/javascriptdude/http_debug
- Owner: JavaScriptDude
- License: mit
- Created: 2023-10-15T20:23:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-21T16:14:06.000Z (about 1 year ago)
- Last Synced: 2024-10-31T17:05:20.558Z (3 months ago)
- Language: Shell
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# http_debug
Basic bash function for troubleshooting http sites.# background
When troubleshooting http server certificates, IP addresses, and other functionality (eg redirects), its helpful to have a tool that does not have any caching.
Regular browser often have internal caches that will get in the way of discrete tests resulting in un-usable results.# Installation
Simply put the bash function in your `~/.bashrc` file (see `src.sh`)
Restart your console or run `% source ~/.bashrc`# Usage
```
% http_debug -h
http_debug [-c|--cookie ] [-u|--ua ] [-s|--secure] [-h|--help] [-g|--get] [-x|--proxy]
```
params:
```
# [url] full url to site including scheme (http/https)
# [cookie] (-c|--cookie)(opt) Path to cookie file to allow session persistence
# [ua] (-u|--ua)(opt) User agent string
# [secure] (-s|--secure)(opt) Tell curl to ignore certificate errors (eg self-signed certificate)
# [get] (-g|--get)(opt) Use GET instead of HEAD (default)
# [proxy] (-x|--proxy)(opt) Proxy server to use (eg http://:)
# [help] (-h|--help)(opt) Show help
```