Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

JavaScriptDude/http_debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

11 Commits

Repository files navigation

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 <cookie>] [-u|--ua <user-agent>] [-s|--secure] [-h|--help] [-g|--get] [-x|--proxy] <url>

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://<host>:<port>)
# [help] (-h|--help)(opt) Show help

About

Basic bash function for troubleshooting http sites

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /