Announcing LittleProxy 0.1 based on Netty

Adam Fisk a at littleshoot.org
Mon Nov 2 11:32:40 EST 2009


Fantastic catch, Stephen!  I'll have to add it in to LittleProxy this
evening - running around a bit today. Seems like a patch to
HttpResponseDecoder is in order, and I can tackle that if you don't
get to it first. I'm also happy to give you commit permissions if you
like. This in particular is clearly a Netty and not a LittleProxy
issue, but I can give you access to the repo if you need to make any
changes going forward.

Thanks for taking the time.

-Adam


On Mon, Nov 2, 2009 at 7:23 AM, Stephen Haberman
<stephen at exigencecorp.com> wrote:
>
>> The hard part is the testing cycles. I'm thinking it might make the
>> most sense to just run a server that returns that file for every
>> request, completely bypassing Netty and allowing us to easily tweak
>> details of the response.
>
> Yeah, that is what netcat allowed me to do--it took the raw bytes in the
> file (e.g. headers + content) and dumped them onto the wire when the
> browser hit http://localhost:8080. So then I could edit the file,
> run netcat, hit it with the browser, etc.
>
> Turns out it's the HTTP version--change the first line of the response
> from:
>
>    HTTP/1.0 200 OK
>
> To:
>
>    HTTP/1.1 200 OK
>
> And firefox loads it successfully now.
>
> Makes sense, in that transfer encoding must be a HTTP 1.1 feature, and
> the originating server was sending it as a HTTP 1.0 complaint request,
> but the proxy upgrades it to an HTTP 1.1 request without bumping the
> version number.
>
> - Stephen
>
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>



-- 
Adam Fisk
http://www.littleshoot.org | http://adamfisk.wordpress.com |
http://twitter.com/adamfisk



More information about the netty-users mailing list