Last active
May 8, 2018 21:57
-
-
Save myok12/1516421957ff986d814258f638d1d4dc to your computer and use it in GitHub Desktop.
Single Non 200 POST call
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[$] curl --verbose --silent --http1.0 --keepalive --header Connection: keep-alive --request POST https://groupon.com/api/auth?token=INCORRECT_very_very_secret_key --data [email protected]&password=password | |
* Trying 100.100.100.100... | |
* TCP_NODELAY set | |
* Connected to groupon.com (100.100.100.100) port 80 (#0) | |
> POST /api/auth?token=INCORRECT_very_very_secret_key HTTP/1.0 | |
> Host: groupon.com | |
> User-Agent: curl/7.54.0 | |
> Accept: */* | |
> Connection: keep-alive | |
> Content-Length: 53 | |
> Content-Type: application/x-www-form-urlencoded | |
> | |
} [53 bytes data] | |
* upload completely sent off: 53 out of 53 bytes | |
* HTTP 1.0, assume close after body | |
< HTTP/1.0 401 Unauthorized | |
< Content-Type: application/json; charset=utf-8 | |
< Content-Length: 61 | |
< Date: Tue, 08 May 2018 21:56:09 GMT | |
< Connection: close | |
< | |
{ [61 bytes data] | |
* Closing connection 0 | |
{"error":{"httpCode":401,"message":"'token' is invalid"}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment