Adam Tauber
b289c84958
[fix] correct dependency gathering in travis
2017-06-01 15:45:34 +02:00
Adam Tauber
2c8c5aef68
Merge pull request #94 from MrSaints/support-multiple-data
...
Add support for multiple cURL `--data` options
2017-06-01 15:42:14 +02:00
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.
2017-04-26 19:26:28 +01:00
Adam Tauber
c8a6ff4569
[fix] remove extra square bracket from statusline
2017-04-14 20:33:53 +02:00
Adam Tauber
bbf21cb5f7
[enh] add clearHistory command
2017-04-14 20:32:17 +02:00
Adam Tauber
974f00be4e
[fix] add formatter to request right after initialization
2017-04-14 18:27:22 +02:00
Adam Tauber
7bfcc6e947
[fix] code formatting
2017-04-14 17:41:57 +02:00
Adam Tauber
c190d93ee2
[fix] use defaultURLScheme if no scheme was specified
2017-04-14 17:19:32 +02:00
Adam Tauber
82d1ae6412
[enh] add context specific search functionality
2017-04-14 17:14:26 +02:00
Adam Tauber
f652335a16
[doc] todo and install updates - closes #97
2017-04-06 15:27:56 +02:00
Adam Tauber
66c5aa2526
Merge pull request #98 from x86kernel/master
...
Colorize Response for html
2017-04-06 15:25:28 +02:00
x86kernel
cd9fe21b90
import errors
2017-04-06 06:43:36 +00:00
x86kernel
272fe31414
error handling
2017-04-06 06:41:46 +00:00
x86kernel
e70eb62d35
Colorize Response for html
2017-04-06 05:39:49 +00:00
Adam Tauber
93274c1621
Merge pull request #93 from MrSaints/fix-host-header
...
Fix `Host` header not being sent
2017-03-30 17:02:01 +02:00
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.
2017-03-30 12:11:17 +01:00
Adam Tauber
07ede4e6f1
[mod] display response formatting errors instead of exit
2017-03-24 22:53:46 +01:00
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.
2017-03-20 16:30:00 +01:00
Adam Tauber
34509b049a
[fix] override default config.Editor with $EDITOR env var even without config file
2017-03-19 00:20:55 +01:00
Adam Tauber
7c16d9db3c
[mod] alphabetical order of config/help items
2017-03-18 07:07:31 +01:00
Adam Tauber
66c0d9baf3
[enh] add openEditor command
2017-03-18 07:05:17 +01:00
Adam Tauber
a10aa8433e
Merge pull request #91 from potato/master
...
multipart form with file upload
2017-03-17 21:01:35 +01:00
potato
fc372716b4
[fix] shows error on non-existent file path; help message; removed accept-types header
2017-03-17 19:19:50 +01:00
potato
2d9dcc9303
[enh] added multipart/form-data requests with file upload capability
2017-03-16 22:05:30 +01:00
Adam Tauber
e6f5674df2
[mod] fallback to grayscale if 8 color initialization fails
2017-03-14 05:26:30 +01:00
Adam Tauber
fa4c1e8592
[mod] fallback to 8 color mode if 256 color initialization fails
2017-03-14 02:07:55 +01:00
Adam Tauber
f3efa161d8
[doc] update config sample
2017-03-13 11:07:29 +01:00
Adam Tauber
0e747e8c35
Merge pull request #74 from zbb93/master
...
#65 - Save Requests
2017-03-13 10:35:54 +01:00
Zac Bowen
9f00f49e06
Modified OpenSaveDialog to accept callback function and title to reduce duplicate code.
2017-03-10 21:22:50 -06:00
Zac Bowen
b546656305
Added CTRL-q to close save request dialog
2017-03-10 18:45:49 -06:00
Zac Bowen
a410145687
Request map now uses string constants instead of hardcoded strings for keys.
2017-03-10 18:45:49 -06:00
Zac Bowen
2021cb615e
#65 Implemented functionality that allows a request to be saved to/read from a json file.
2017-03-10 18:45:49 -06:00
Adam Tauber
231f1db55f
[enh] v0.3.0
2017-03-07 23:33:01 +01:00
Adam Tauber
421e1e60e3
[fix] do not draw background for selected text
2017-03-07 22:18:29 +01:00
Adam Tauber
be3e5197eb
[fix] remove inseure flag from tls example in help text
2017-03-07 01:32:14 +01:00
Adam Tauber
a589db3efc
[fix] remove tabs from help text
2017-03-07 01:09:58 +01:00
Adam Tauber
ecde828bd6
[enh] add new statusline functions
2017-03-07 01:09:25 +01:00
Adam Tauber
845626567d
[fix] initialize statusline with default config - closes #86
2017-03-07 00:54:42 +01:00
Adam Tauber
68e9328590
Merge pull request #85 from pradeepchhetri/cleanups
...
Minor cleanups
2017-03-06 02:21:45 +01:00
Pradeep Chhetri
371b4cce37
Minor cleanups
2017-03-06 00:54:47 +05:30
Adam Tauber
760d7739f1
[enh] add request duration to statusline
2017-03-04 04:13:53 +01:00
Adam Tauber
54d532497d
[enh] add statusline
2017-03-04 03:25:48 +01:00
Adam Tauber
aab7f36262
[fix] gofmt
2017-03-03 21:43:50 +01:00
Adam Tauber
0a5749815d
Merge branch 'autocomplete'
...
closes #80
2017-03-03 21:06:45 +01:00
Adam Tauber
a8baa739d2
[fix] autocomplete positioning
2017-03-03 20:21:37 +01:00
Benaiah Mischenko
ec9e472797
Autocomplete request headers
2017-03-03 20:21:37 +01:00
Adam Tauber
efc1a4b97e
Merge pull request #83 from Benaiah/sample-config-defaults
...
Make sample config have default config settings
2017-03-03 19:05:21 +01:00
Benaiah Mischenko
9ed7a7d404
Make sample config have default config settings
2017-03-03 09:50:06 -08:00
Adam Tauber
2e10685f7d
Merge pull request #79 from udhos/master
...
Restrict allowed TLS versions.
2017-03-02 21:36:18 +01:00
Everton Marques
5a78cc8930
Fix go vet complaint.
2017-03-02 17:29:12 -03:00