Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==0.2.0
->==3.1.0
By merging this PR, the below issues will be automatically resolved and closed:
Release Notes
httpie/httpie
v3.1.0
Compare Source
auto
themes. (#1300)--quiet
so that it will now suppress all python level warnings. (#1271)--cert-key-pass
and prompts. (#946)httpie cli export-args
command for exposing the parser specification for thehttp
/https
commands. (#1293)v3.0.2
Compare Source
What’s new in HTTPie for Terminal 3.0 →
httpie
when there is a presence of a config withdefault_options
. (#1280)v3.0.1
Compare Source
What’s new in HTTPie for Terminal 3.0 →
v3.0.0
Compare Source
What’s new in HTTPie for Terminal 3.0 →
httpie plugins
interface for plugin management. (#566)--auth-type=bearer
(#1215).$ https ://pie.dev
→https://pie.dev
). (#1195)--form
/--multipart
when using JSON only operators (:=
/:=@​
). (#1212)--stream
whenContent-Type
istext/event-stream
. (#376)--meta
/-vv
or--print=m
. (#243)pie-dark
/pie-light
(andpie
) styles that match with HTTPie for Web and Desktop. (#1237)--ignore-stdin
, when there is no incoming data from stdin. (#1255)Content-Type
specifiescharset
. (#1242)--raw
is used with--chunked
. (#1253)fruity
toauto
. (#1266)v2.6.0
Compare Source
What’s new in HTTPie for Terminal 2.6.0 →
Content-Type
doesn’t include it. (#1110, #1168)--response-charset
to allow overriding the response encoding for terminal display purposes. (#1168)--response-mime
to allow overriding the response mime type for coloring and formatting for the terminal. (#1168)-q
or--quiet
twice (e.g.-qq
) (#1175)--debug
output. (#1165)v2.5.0
Compare Source
What’s new in HTTPie for Terminal 2.5.0 →
--raw
to allow specifying the raw request body without extra processing asan alternative to
stdin
. (#534)--continue --download
with a single byte to be downloaded left. (#1032)--verbose
HTTP 307 redirects with streamed request body. (#1088)Cookie:
followed by other headers. (#1126)v2.4.0
Compare Source
--session
cookie expiration based onSet-Cookie: max-age=<n>
. (#1029)--check-status
warning with--quiet
as well, not only when the output is redirected. (#1026)--session
(#1020).v2.3.0
Compare Source
http pie.dev/post @​file
).--chunked
to enable chunked transfer encoding (#753).--multipart
to allowmultipart/form-data
encoding for non-file--form
requests as well.--boundary
to allow a custom boundary string formultipart/form-data
requests.--quiet, -q
flag to enforce silent behaviour.expires
dates inSet-Cookie
headers (#963).v2.2.0
Compare Source
$XDG_CONFIG_HOME
(#920).Set-Cookie
-triggered cookie expiration (#853).--format-options
to allow disabling sorting, etc. (#128)--sorted
and--unsorted
shortcuts for (un)setting all sorting-related--format-options
. (#128)--ciphers
to allow configuring OpenSSL ciphers (#870).netrc
support for auth plugins. Enabled for--auth-type=basic
and
digest
, 3rd parties may opt in (#718, #719, #852, #934).v2.1.0
Compare Source
--path-as-is
to bypass dot segment (/../
or/./
)URL squashing (#895).
Accept
header value for JSON requests fromapplication/json, */*
toapplication/json, */*;q=0.5
to clearly indicate preference (#488).
--form
file upload mixed with redirectedstdin
error handling(#840).
v2.0.0
Compare Source
--offline
to allow building an HTTP request and printing it but notactually sending it over the network.
with one-by-one processing of each HTTP request or response as they become
available. This means that you can see headers immediately,
see what is being sent even if the request fails, etc.
--timeout
limit.--max-headers
to allow setting the max header limit.--compress
to allow request body compression.--ignore-netrc
to allow bypassing credentials from.netrc
.https
alias command withhttps://
as the default scheme.$ALL_PROXY
documentation.tests/
to the PyPi package for the convenience ofdownstream package maintainers.
stdin
was a closed fd.--debug
output formatting.v1.0.3
Compare Source
Fixed CVE-2019-10751 — the way the output filename is generated for
--download
requests without--output
resulting in a redirect hasbeen changed to only consider the initial URL as the base for the generated
filename, and not the final one. This fixes a potential security issue under
the following scenario:
--download
request with no explicit--output
is made (e.g.,$ http -d example.org/file.txt
), instructing httpie togenerate the output filename
from the
Content-Disposition
response header, or from the URL if the headeris not provided.
instead of the expected response the URL returns a redirect to another
URL, e.g.,
attacker.example.org/.bash_profile
, whose response doesnot provide a
Content-Disposition
header (i.e., the base for thegenerated filename becomes
.bash_profile
instead offile.txt
)..bash_profile
(i.e., no unique suffix is added to the generated filename).
as reported by httpie in the console output
(e.g.,
Downloading 100.00 B to ".bash_profile"
).Reported by Raul Onitza and Giulio Comi.
v1.0.2
Compare Source
v1.0.0
Compare Source
--style=auto
which follows the terminal ANSI color styles.--ssl=tls1.3
(available once implemented in upstream libraries).
true
/false
as valid values for--verify
(in addition to
yes
/no
) and the boolean value is case-insensitive.--style
fromsolarized
toauto
(on Windows it staysfruity
).v0.9.9
Compare Source
v0.9.8
Compare Source
7
for plugin errors.curses
-less Python installations.REQUEST_ITEM
arg incorrectly being reported as required.CTRL-C
interrupt handling.130
for keyboard interrupts.v0.9.7
Compare Source
v0.9.6
to ensure some of the newer HTTP features work out of the box
for macOS users (starting with HTTPie 0.9.4.).
Header:
, and send anempty value with
Header;
.--default-scheme <URL_SCHEME>
to enable things like$ alias https='http --default-scheme=https
.-I
as a shortcut for--ignore-stdin
.extras/httpie-completion.fish
in the GitHub repo).
requests
to 2.10.0 so that SOCKS support can be added viapip install requests[socks]
.Accept
header fromapplication/json
to
application/json, */*
.and trailing whitespace is removed.
v0.9.4
Compare Source
Content-Type
of files uploaded inmultipart/form-data
requests--ssl=<PROTOCOL>
to specify the desired SSL/TLS protocol versionto use for HTTPS requests.
--json, -j
to work around incorrectContent-Type
--all
to show intermediate responses such as redirects (with--follow
)--history-print, -P WHAT
to specify formatting of intermediate responses--max-redirects=N
(default 30)-A
as short name for--auth-type
-F
as short name for--follow
implicit_content_type
config option(use
"default_options": ["--form"]
instead)stdout
doesn't trigger an error anymore when--output FILE
is set
--style
back tosolarized
for better supportof light and dark terminals
--debug
output--session
when used with--download
--download
to trim too long filenames before saving the fileContent-Type
with multiple+subtype
partsv0.9.3
Compare Source
--style
fromsolarized
tomonokai
'requests.packages.urllib3' has no attribute 'disable_warnings'
errors that occurred in some installations
--auth
prompt on Windowsv0.9.2
Compare Source
Content-Type
toapplication/json
as UTF-8is the default JSON encoding
v0.9.1
Compare Source
(see httpie-unixsocket
and httpie-http2)
v0.9.0
Compare Source
--cert
and--cert-key
parameters to specify a client sidecertificate and private key for SSL
curses
\
now only escapes special characters (the ones that are used as key-value
separators by HTTPie)
unittest
topytest
wheel
supportCONTRIBUTING
User-Agent
overwriting when used within a session--output=/dev/null
on Linuxv0.8.0
field=@​file.txt
andfield:=@​file.json
for embeddingthe contents of text and JSON files into request data
Host
header value output so that it doesn't containcredentials, if included in the URL
v0.7.0
Compare Source
--ignore-stdin
.--help
output.Content-Disposition
parsing for--download
mode.v0.6.0
Compare Source
--session
and--session-read-only
now also accept paths tosession files (eg.
http --session=/tmp/session.json example.org
)v0.5.1
Compare Source
Content-*
andIf-*
request headers are not stored in sessionsanymore as they are request-specific
v0.5.0
Compare Source
--download
v0.4.1
Compare Source
setup.py
v0.4.0
Compare Source
--no-option
for every--option
to be config-friendlylast value is used
v0.3.1
Compare Source
v0.3.0
Compare Source
--allow-redirects
to--follow
http --help
2
for timed-out requests(
--pretty=all
,--pretty=colors
and--pretty=format
)--ugly
has bee removed in favor of--pretty=none
v0.2.7
Compare Source
--stream, -S
can be used to enablestreaming also with
--pretty
and to ensure a more frequent outputflushing
--pretty=none
)--headers
)--output FILE
to store output into a file(piping results in corrupted data on Windows)
multipart/form-data
requests--traceback
to--debug
v0.2.6
Compare Source
--headers
is now-h
(-t
has beenremoved, for usage use
--help
)(e.g.,
http -f url a=1 a=2
)--check-status
to exit with an error on HTTP 3xx, 4xx and5xx (3, 4, and 5, respectively)
the default behaviour is to only print the response body
(It can still be overwritten via the
--print
flag.)param==value
)v0.2.5
Compare Source
improved readability
Content-Type
(http URL @​/path
)--verbose
v0.2.4
Compare Source
v0.2.3
Compare Source
v0.2.2
Compare Source
METHOD
positional argument can now be omitted (defaults toGET
, or toPOST
with data)v0.2.1
Compare Source
requests-0.12.1
in
pygments-1.5