[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] [PATCH] Add sample/https-client.c, an example of stacking evhttp as a client on top of bufferevent_ssl.



On 11-03-13 16:00, Alexey Ozeritsky wrote:
> libevent does something wrong:
> 
> $ ./sample/https-client -url https://localhost/proxy -data 4K -ignore-cert
> Response line: 200 OK
> OK
> 
> $ ./sample/https-client -url https://localhost/proxy -data 512K -ignore-cert
> Response line: 502 Bad Gateway
> <html>
> <head><title>502 Bad Gateway</title></head>
> <body bgcolor="white">
> <center><h1>502 Bad Gateway</h1></center>
> <hr><center>nginx/1.2.1</center>
> </body>
> </html>

Perhaps silly, but can you test again by adding a slash to the URL
provided?

i.e.: "https://localhost/proxy/"; instead of "https://localhost/proxy";

Curl might add the missing slash making an exact match on the URL to
succeed there.


	Oscar

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature