Add example "cureq". (#330)

Contrary to smoke-test, this takes full URLs on the commandline and
prints their contents to stdout. This makes it easier to test behavior
with specific URLs. I hope to later add flags for various behaviors like
printing headers, following redirects, enabling / disabling cookies,
and verbose output.

Also add a useful debug line when receiving a cookie header.
This commit is contained in:
Jacob Hoffman-Andrews
2021-02-21 14:26:12 -08:00
committed by GitHub
parent 7222931b24
commit 6f86ee7f93
3 changed files with 133 additions and 0 deletions

View File

@@ -46,3 +46,7 @@ env_logger = "0.8.1"
[[example]]
name = "smoke-test"
[[example]]
name = "cureq"
required-features = ["charset", "cookies", "socks-proxy"]