curl -v https://a.b.domain.com/uaa/login -d username=x -d password=y
*   Trying 1.2.3.4...
* Connected to a.b.domain.com (1.2.3.4) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
* Server certificate: *.domain.com
* Server certificate: SSL.com DV CA
* Server certificate: USERTrust RSA Certification Authority
* Server certificate: AddTrust External CA Root
> POST /uaa/login HTTP/1.1
> Host: a.b.domain.com
> User-Agent: curl/7.43.0
> Accept: */*
> Content-Length: 52
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 52 out of 52 bytes
< HTTP/1.1 502 Bad Gateway
< Server: nginx
< Date: Wed, 08 Jun 2016 15:24:36 GMT
< Content-Type: text/html
< Content-Length: 166
< Connection: keep-alive
<
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
* Connection #0 to host a.b.domain.com left intact
