1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00

Added the ability to pass query string parameters.

This commit is contained in:
Jake Basile
2012-07-18 20:44:09 -05:00
parent c2d70e2bb1
commit 06ea36aaa4
3 changed files with 17 additions and 5 deletions

View File

@@ -41,6 +41,7 @@ def _get_response(args):
# the `Content-Type` for us.
args.headers['Content-Type'] = TYPE_FORM
# Fire the request.
try:
credentials = None
@@ -61,6 +62,7 @@ def _get_response(args):
proxies=dict((p.key, p.value) for p in args.proxy),
files=args.files,
allow_redirects=args.allow_redirects,
params=args.queries,
)
except (KeyboardInterrupt, SystemExit):