Ticket #1009: curl_nginx.txt

File curl_nginx.txt, 967 bytes (added by artursenk@…, 10 years ago)

Curl with nginx as a reverse proxy

Line 
1curl -v https://a.b.domain.com/uaa/login -d username=x -d password=y
2* Trying 1.2.3.4...
3* Connected to a.b.domain.com (1.2.3.4) port 443 (#0)
4* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
5* Server certificate: *.domain.com
6* Server certificate: SSL.com DV CA
7* Server certificate: USERTrust RSA Certification Authority
8* Server certificate: AddTrust External CA Root
9> POST /uaa/login HTTP/1.1
10> Host: a.b.domain.com
11> User-Agent: curl/7.43.0
12> Accept: */*
13> Content-Length: 52
14> Content-Type: application/x-www-form-urlencoded
15>
16* upload completely sent off: 52 out of 52 bytes
17< HTTP/1.1 502 Bad Gateway
18< Server: nginx
19< Date: Wed, 08 Jun 2016 15:24:36 GMT
20< Content-Type: text/html
21< Content-Length: 166
22< Connection: keep-alive
23<
24<html>
25<head><title>502 Bad Gateway</title></head>
26<body bgcolor="white">
27<center><h1>502 Bad Gateway</h1></center>
28<hr><center>nginx</center>
29</body>
30</html>
31* Connection #0 to host a.b.domain.com left intact