Re: [Libevent-users] [PATCH] Add Host header in HTTP/1.1 requests if it's missing.

2011-08-19 Thread Oscar Koeroo
On 19/8/11 1:14 PM, Leonid Evdokimov wrote: > Hello, > > Here is patch to add "host" header to outgoing HTTP/1.1 requests. > Please, review. > > Without the patch libevent-based evhttp-client.c can't get reply from > any sane server because the request is rejected with "400 Bad request" > and wor

Re: [Libevent-users] [PATCH] Add Host header in HTTP/1.1 requests if it's missing.

2011-08-19 Thread Nick Mathewson
On Fri, Aug 19, 2011 at 7:14 AM, Leonid Evdokimov wrote: > Hello, > > Here is patch to add "host" header to outgoing HTTP/1.1 requests. > Please, review. > > Without the patch libevent-based evhttp-client.c can't get reply from > any sane server because the request is rejected with "400 Bad reques

Re: [Libevent-users] [PATCH] Add Host header in HTTP/1.1 requests if it's missing.

2011-08-19 Thread Mark Ellzey
On Fri, Aug 19, 2011 at 03:14:12PM +0400, Leonid Evdokimov wrote: > From a87fc928f7a61ca691861154ffd9ba3e6aec0397 Mon Sep 17 00:00:00 2001 > From: Leonid Evdokimov > Date: Fri, 19 Aug 2011 14:47:20 +0400 > Subject: [PATCH 6/6] Add Host header in HTTP/1.1 requests if it's missing. > > --- > http.

[Libevent-users] [PATCH] Add Host header in HTTP/1.1 requests if it's missing.

2011-08-19 Thread Leonid Evdokimov
Hello, Here is patch to add "host" header to outgoing HTTP/1.1 requests. Please, review. Without the patch libevent-based evhttp-client.c can't get reply from any sane server because the request is rejected with "400 Bad request" and workaround - adding the header manually - is required. -- WBRB