Commit Graph

141 Commits (master)

Author SHA1 Message Date
Adam Tauber 0935ebdf55 [enh] version 0.5.0 3 years ago
Adam Tauber 0fdc15aabf [fix] add request data to request history - fixes #133 3 years ago
Brennan Taylor ca3a1c626c rename remaining instances of F12 to F11 4 years ago
Shodiq 2c8b810368 implement toggle key for redirects restriction 5 years ago
Mihai Todor 9a03b811fd Refactor header support to use strings.Builder 6 years ago
Mihai Todor 752c5de794 Implement support for HTTP trailers 6 years ago
Adam Tauber 1b75b60d0f [fix] import request data from saved request file - fixes #109 6 years ago
Adam Tauber 6d459300a0 [enh] add proper shell escaping 7 years ago
Lucas BEE 3fa975dbb9 Add curl as an export option
Fixes #10
7 years ago
Klaus Ita 043d50c515 fix: handling of multiple same-name query params
Multiple get parameters with the same name are now printed each in their
own line. The parameters get added to the query string correctly, each
one as a single param.
7 years ago
Adam Tauber ef041bc912 [enh] version 0.4.0 7 years ago
Adam Tauber 673749dc6d [enh] followup of gocui dependency changes 7 years ago
Colin T.A. Gray 18bff0394e show error message in RESPONSE_BODY_VIEW on file or json reading error 7 years ago
Colin T.A. Gray 358603c058 fail silently, don't crash, when the file doesn't exist 7 years ago
Colin T.A. Gray 86bb73a472 move more code into 'loadRequest' (accepts string, opens file, reads json) 7 years ago
Colin T.A. Gray 3bd6a0ff4e bind 'ctrl+f' to 'loadRequest' command, document it and -f/--file option 7 years ago
Ian Lai 3ad407e0a1 Add support for `--data-urlencode`, and for multiple data options
This commit attempts to bring greater consistency between
cURL, and wuzz use of body data.

Previously, when `--data` was used more than once, only the last
use of it would be added to the request body. cURL however, allows
multiple 'data' options to be specified, and it will simply
merge them using the `&` symbol separator.

Furthermore, this commit removes the default query unescaping for
body data so that `--data-urlencode` can be supported. This is to
emulate the behaviour in cURL where `--data-urlencode` will use
percent encoding on the given data. If the default query unescaping
was not removed, we will always show, and send unescaped data.

Example:

	wuzz -k curl -X POST http://kong:8001/apis/123-456-789/plugins \
		--data "name=key-auth" \
		--data "config.hide_credentials=true"

In the future, `@` support should be added for data. That is, it
should be able to load a file to include as part of the payload.

Also, for percent encoding to work, this commit takes the argument
data, and constructs a Go `url.URL` struct. It then converts that
URL into a string to take advantage of its internal logic for encoding
spaces. Once `wuzz` is upgraded to build using Go 1.8, we can then
use `PathEscape` instead to achieve this.
7 years ago
Adam Tauber 974f00be4e [fix] add formatter to request right after initialization 7 years ago
Adam Tauber c190d93ee2 [fix] use defaultURLScheme if no scheme was specified 7 years ago
Adam Tauber 82d1ae6412 [enh] add context specific search functionality 7 years ago
Ian Lai 164c4ed19d Fix `Host` header not being sent
See: https://github.com/golang/go/issues/7682

Custom headers are set using `headers.Set(..)`.
When it comes to the `Host` header however, this will have no impact
because the request uses the `Host` field from `Request`. If it is
not set, then `URL.Host` will be used.

This commit will make `wuzz` behaviour consistent with cURL.
7 years ago
Adam Tauber 07ede4e6f1 [mod] display response formatting errors instead of exit 7 years ago
Adam Tauber 7c16d9db3c [mod] alphabetical order of config/help items 7 years ago
Adam Tauber 66c0d9baf3 [enh] add openEditor command 7 years ago
potato fc372716b4 [fix] shows error on non-existent file path; help message; removed accept-types header 7 years ago
potato 2d9dcc9303 [enh] added multipart/form-data requests with file upload capability 7 years ago
Adam Tauber e6f5674df2 [mod] fallback to grayscale if 8 color initialization fails 7 years ago
Adam Tauber fa4c1e8592 [mod] fallback to 8 color mode if 256 color initialization fails 7 years ago
Zac Bowen 9f00f49e06 Modified OpenSaveDialog to accept callback function and title to reduce duplicate code. 7 years ago
Zac Bowen b546656305 Added CTRL-q to close save request dialog 7 years ago
Zac Bowen a410145687 Request map now uses string constants instead of hardcoded strings for keys. 7 years ago
Zac Bowen 2021cb615e #65 Implemented functionality that allows a request to be saved to/read from a json file. 7 years ago
Adam Tauber 231f1db55f [enh] v0.3.0 7 years ago
Adam Tauber 421e1e60e3 [fix] do not draw background for selected text 7 years ago
Adam Tauber be3e5197eb [fix] remove inseure flag from tls example in help text 7 years ago
Adam Tauber a589db3efc [fix] remove tabs from help text 7 years ago
Adam Tauber 845626567d [fix] initialize statusline with default config - closes #86 7 years ago
Pradeep Chhetri 371b4cce37 Minor cleanups 7 years ago
Adam Tauber 760d7739f1 [enh] add request duration to statusline 7 years ago
Adam Tauber 54d532497d [enh] add statusline 7 years ago
Adam Tauber aab7f36262 [fix] gofmt 7 years ago
Adam Tauber a8baa739d2 [fix] autocomplete positioning 7 years ago
Benaiah Mischenko ec9e472797 Autocomplete request headers 7 years ago
Everton Marques 5a78cc8930 Fix go vet complaint. 7 years ago
Everton Marques 4d5bc7f55f Cleanup: remove redundant text. 7 years ago
Everton Marques 4e2c20a29d cURL flags, global var in uppercase, break arg parsing by returning error. 7 years ago
Everton Marques c30e7a09ae Restrict allowed TLS versions. 7 years ago
Adam Tauber 3e3f1142e3 [enh] ability to disable following redirections 7 years ago
Adam Tauber ed86f0e1ac [fix] import order 7 years ago
Adam Tauber 85147bed2d [enh] add socks proxy support - closes #77 7 years ago