# Mongrel Malformed Request error - help!

**URL:** <https://www.ruby-forum.com/t/mongrel-malformed-request-error-help/171258>\
**Category:** Rails\
**Created:** [June 29, 2009, 5:32pm UTC](https://www.ruby-forum.com/t/mongrel-malformed-request-error-help/171258 "2009-06-29T17:32:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hirodusk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/6f9a4e/32.png) [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Post date:** [June 29, 2009, 5:32pm UTC](https://www.ruby-forum.com/t/mongrel-malformed-request-error-help/171258/1 "2009-06-29T17:32:20Z")

</div>

I’ve just migrated my system over to a new macbook.

I’ve been having a nightmare today trying to get the site I’m working on  
to work…  
All gems are in place, MySQL etc.

However - I am stuck on this error form Mongrel:

HTTP parse error, malformed request (127.0.0.1):  
#\<Mongrel::HttpParserError: Invalid HTTP format, parsing fails.\>

The only thing it could be, I think, is we are using the SSL\_Requirement  
plugin.  
That is redirecting to an https page and thats the last thing that  
happens before mongrel shows this error.

I have never seen this before, and google searches are not showing up  
much that is helpful.

If anyone has any pointers, would be much appreciated!

Thanks

---

<div class="post-metadata">

**Author:** ![hirodusk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/6f9a4e/32.png) [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Post date:** [June 29, 2009, 5:35pm UTC](https://www.ruby-forum.com/t/mongrel-malformed-request-error-help/171258/2 "2009-06-29T17:35:23Z")

</div>

Mongrel doesn’t support SSL, you’ll have to disable this on dev mode.

- 

Maurício Linhares  
[http://codeshooter.wordpress.com/](http://codeshooter.wordpress.com/) | [http://twitter.com/mauriciojr](http://twitter.com/mauriciojr)

On Mon, Jun 29, 2009 at 12:32 PM, Adam

---

<div class="post-metadata">

**Author:** ![hirodusk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/6f9a4e/32.png) [@hirodusk](https://www.ruby-forum.com/u/hirodusk)\
**Post date:** [June 29, 2009, 5:50pm UTC](https://www.ruby-forum.com/t/mongrel-malformed-request-error-help/171258/3 "2009-06-29T17:50:18Z")

</div>

MaurÃ­cio Linhares wrote:

> Mongrel doesn’t support SSL, you’ll have to disable this on dev mode.
> 
> - 
> 
> Maurï¿½cio Linhares  
> [http://codeshooter.wordpress.com/](http://codeshooter.wordpress.com/) | [http://twitter.com/mauriciojr](http://twitter.com/mauriciojr)
> 
> On Mon, Jun 29, 2009 at 12:32 PM, Adam

Thanks

We had this all working before on my old macbook, I cannot remember how  
though -  
using an Apache config to deal with SSL requests in front of Mongrel.

Anyhow, I managed to get the app working for now by commenting out all  
references to SSL\_Requirement and ssl\_required.

Thanks for the tip!
