Commit Graph

197 Commits (2078d39a00c697dd55df417f05625ffadc712fe7)
 

Author SHA1 Message Date
Adam Tauber 2078d39a00 Set theme jekyll-theme-cayman 7 years ago
Adam Tauber ef041bc912 [enh] version 0.4.0 7 years ago
Adam Tauber abb72a2d29 [fix] followup of gocui dependency changes 7 years ago
Adam Tauber 673749dc6d [enh] followup of gocui dependency changes 7 years ago
Adam Tauber 6f3f18d736 Merge pull request #102 from colinta/master
Document 'load request' feature, bind to 'ctrl+f'
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
Adam Tauber a985eb2f0f [mod] change tip go version in travis to 1.8.3 7 years ago
Colin T.A. Gray 3bd6a0ff4e bind 'ctrl+f' to 'loadRequest' command, document it and -f/--file option 7 years ago
Adam Tauber b289c84958 [fix] correct dependency gathering in travis 7 years ago
Adam Tauber 2c8c5aef68 Merge pull request #94 from MrSaints/support-multiple-data
Add support for multiple cURL `--data` options
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 c8a6ff4569 [fix] remove extra square bracket from statusline 7 years ago
Adam Tauber bbf21cb5f7 [enh] add clearHistory command 7 years ago
Adam Tauber 974f00be4e [fix] add formatter to request right after initialization 7 years ago
Adam Tauber 7bfcc6e947 [fix] code formatting 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
Adam Tauber f652335a16 [doc] todo and install updates - closes #97 7 years ago
Adam Tauber 66c5aa2526 Merge pull request #98 from x86kernel/master
Colorize Response for html
7 years ago
x86kernel cd9fe21b90 import errors 7 years ago
x86kernel 272fe31414 error handling 7 years ago
x86kernel e70eb62d35 Colorize Response for html 7 years ago
Adam Tauber 93274c1621 Merge pull request #93 from MrSaints/fix-host-header
Fix `Host` header not being sent
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 8b38235ec1 [fix] termbox sync after opening external editor
The full restart of termbox messes up keybindings. Seems Sync() is enough
to restore console settings and it handles keybindings too.
7 years ago
Adam Tauber 34509b049a [fix] override default config.Editor with $EDITOR env var even without config file 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
Adam Tauber a10aa8433e Merge pull request #91 from potato/master
multipart form with file upload
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
Adam Tauber f3efa161d8 [doc] update config sample 7 years ago
Adam Tauber 0e747e8c35 Merge pull request #74 from zbb93/master
#65 - Save Requests
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 ecde828bd6 [enh] add new statusline functions 7 years ago
Adam Tauber 845626567d [fix] initialize statusline with default config - closes #86 7 years ago
Adam Tauber 68e9328590 Merge pull request #85 from pradeepchhetri/cleanups
Minor cleanups
7 years ago
Pradeep Chhetri 371b4cce37 Minor cleanups 7 years ago