Hi All,

       How to solve this issue ?
Thu Aug 12 10:49:15 +0530 2010: HTTP parse error, malformed request
(127.0.0.1): #<Mongrel::HttpParserError: Invalid HTTP format, parsing
fails.>

       I'm working with the drag and drop files upload . I can able to
get the file content and file name storing in the server as raw data
directly.

       In case of pdf file uploading getting this error
Thu Aug 12 10:49:15 +0530 2010: HTTP parse error, malformed request
(127.0.0.1): #<Mongrel::HttpParserError: Invalid HTTP format, parsing
fails.>

Code:

requestbody =  files[i].getAsBinary();

 
http_request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");

http_request.sendAsBinary(requestbody);


I have been working with this issue ?


Any idea from anybody?
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to