# Mongrel::HttpParserError

**URL:** <https://www.ruby-forum.com/t/mongrel-httpparsererror/158652>\
**Category:** Rails\
**Created:** [January 26, 2009, 1:52pm UTC](https://www.ruby-forum.com/t/mongrel-httpparsererror/158652 "2009-01-26T13:52:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ray](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e9a140/32.png) [@ray](https://www.ruby-forum.com/u/ray)\
**Post date:** [January 26, 2009, 1:52pm UTC](https://www.ruby-forum.com/t/mongrel-httpparsererror/158652/1 "2009-01-26T13:52:26Z")

</div>

I’m new to rails, started first project today.  
I’m also using flex and want to go RESTful over HTTP as much as  
possible, most posts seem to think this is not possible!

Everything runs RESTfuly fine in the flex local sandbox, but fails in  
the remote sandbox due to security.

I’m using as3httpclientlib as HTTPService doesn’t do the job.  
Flash sends a request over the socket and  
expects the policy file back. This is not HTTP so I get:

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

This post seems to be the way but I have no idea where to put the  
code.

> **[Juggernaut & Comet fixes](https://clockingit.wordpress.com/2007/01/25/juggernaut-comet-fixes/#comment-1515)**
>
> After struggling a bit with getting the Flash bridge working on my Linux machines, I did some research and discovered that the latest Flash refuses to fetch the crossdomain.xml file from anywhere e…

.

Question:  
Using how/where do I intercept that request and return xml?
