Skip to content

Instantly share code, notes, and snippets.

@clayg
Created June 7, 2017 00:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clayg/8a0eb56c8984c0cf9b58bb5a409aedf8 to your computer and use it in GitHub Desktop.
Save clayg/8a0eb56c8984c0cf9b58bb5a409aedf8 to your computer and use it in GitHub Desktop.
ubuntu@ubuntu-xenial:~$ curl -H 'x-auth-token: gAAAAABZN0TMC0Z_Nl_UKLBXwMvcPW9uLT2HmujxL-wPcqGH8JDZtiXCSrICX2mPmDNw0T6HozOBRuSWnxnEjFjZY8fd4b7f0qBwKRMZavK6bVcZo4uLee2vTmZMZS_EP7UXCzRYqHF7Mqa4kFj0mX0RQRsXwFycQ_Vnakr4iVTf7s5hmenxY8U' http://192.168.8.8:8081/v1/AUTH_eada03f9246d44bead404d632376a205/test/obj -H 'content-length: 10000000000000000000' -XPUT -H 'Expect: 100-Continue' -v
* Trying 192.168.8.8...
* Connected to 192.168.8.8 (192.168.8.8) port 8081 (#0)
> PUT /v1/AUTH_eada03f9246d44bead404d632376a205/test/obj HTTP/1.1
> Host: 192.168.8.8:8081
> User-Agent: curl/7.47.0
> Accept: */*
> x-auth-token: gAAAAABZN0TMC0Z_Nl_UKLBXwMvcPW9uLT2HmujxL-wPcqGH8JDZtiXCSrICX2mPmDNw0T6HozOBRuSWnxnEjFjZY8fd4b7f0qBwKRMZavK6bVcZo4uLee2vTmZMZS_EP7UXCzRYqHF7Mqa4kFj0mX0RQRsXwFycQ_Vnakr4iVTf7s5hmenxY8U
> content-length: 10000000000000000000
> Expect: 100-Continue
>
< HTTP/1.1 413 Request Entity Too Large
< Content-Length: 26
< Content-Type: text/plain
< X-Trans-Id: tx9d59237ece2542dbae9f3-00593747a3
< X-Openstack-Request-Id: tx9d59237ece2542dbae9f3-00593747a3
< Date: Wed, 07 Jun 2017 00:24:03 GMT
<
* Connection #0 to host 192.168.8.8 left intact
Your request is too large.ubuntu@ubuntu-xenial:~$
ubuntu@ubuntu-xenial:~$ curl -H 'x-auth-token: gAAAAABZN0TMC0Z_Nl_UKLBXwMvcPW9uLT2HmujxL-wPcqGH8JDZtiXCSrICX2mPmDNw0T6HozOBRuSWnxnEjFjZY8fd4b7f0qBwKRMZavK6bVcZo4uLee2vTmZMZS_EP7UXCzRYqHF7Mqa4kFj0mX0RQRsXwFycQ_Vnakr4iVTf7s5hmenxY8U' https://192.168.8.8:8080/v1/AUTH_eada03f9246d44bead404d632376a205/test/obj -H 'content-length: 10000000000000000000' -XPUT -H 'Expect: 100-Continue' -v
* Trying 192.168.8.8...
* Connected to 192.168.8.8 (192.168.8.8) port 8080 (#0)
* found 176 certificates in /etc/ssl/certs/ca-certificates.crt
* found 704 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256
* server certificate verification OK
* server certificate status verification SKIPPED
* common name: localhost (matched)
* server certificate expiration date OK
* server certificate activation date OK
* certificate public key: RSA
* certificate version: #3
* subject: O=OpenStack,OU=DevStack Servers,CN=localhost
* start date: Tue, 06 Jun 2017 18:17:04 GMT
* expire date: Wed, 06 Jun 2018 18:17:04 GMT
* issuer: O=OpenStack,OU=DevStack Certificate Authority,CN=Intermediate CA
* compression: NULL
* ALPN, server accepted to use http/1.1
> PUT /v1/AUTH_eada03f9246d44bead404d632376a205/test/obj HTTP/1.1
> Host: 192.168.8.8:8080
> User-Agent: curl/7.47.0
> Accept: */*
> x-auth-token: gAAAAABZN0TMC0Z_Nl_UKLBXwMvcPW9uLT2HmujxL-wPcqGH8JDZtiXCSrICX2mPmDNw0T6HozOBRuSWnxnEjFjZY8fd4b7f0qBwKRMZavK6bVcZo4uLee2vTmZMZS_EP7UXCzRYqHF7Mqa4kFj0mX0RQRsXwFycQ_Vnakr4iVTf7s5hmenxY8U
> content-length: 10000000000000000000
> Expect: 100-Continue
>
< HTTP/1.1 400 Bad Request
< Date: Wed, 07 Jun 2017 00:24:03 GMT
< Server: Apache/2.4.18 (Ubuntu)
< Connection: close
< Content-Type: text/html; charset=iso-8859-1
<
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<hr>
<address>Apache/2.4.18 (Ubuntu) Server at 192.168.8.8 Port 8080</address>
</body></html>
* Closing connection 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment