LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Request rejected by server

Reply
 
Thread Tools Display Modes
  #1  
Old 03-29-2008, 12:50 PM
Jon Jon is offline
New Member
 
Join Date: Mar 2008
Posts: 4
Default Request rejected by server

I have a web app with two parts. (1) A back end that is accessed from a web browser, and (2) a front end that is accessed by a wireless, mobile PC.

The app works perfectly on the other servers I've tested it in. And also, the back end works fine under LiteSpeed.

However, when I try to connect with the handheld, I get this message:

"Status 400: Unexpected request body 592 bytes for request: <clipped...>"

The handheld communicates with the server by sending XML in the request body, and it looks to me like the LiteSpeed server is rejecting the request because it recognizes it as having and invalid body (the XML). I have turned off everything I can find regarding request filtering.

Any suggestions?

Jon

P.S. This is a Ruby on Rails app, but I posted it in this forum since it appears to be a configuration issue with the server, rather than Ruby.
Reply With Quote
  #2  
Old 03-29-2008, 02:35 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Looks like your handheld sends a request containing invalid characters or some thing.

Please use tcpdump to dump the request packet and send the output to bug@ ... , we will check if we can address it.
Reply With Quote
  #3  
Old 03-29-2008, 05:52 PM
Jon Jon is offline
New Member
 
Join Date: Mar 2008
Posts: 4
Thanks, I will send in the bug report. I don't have any direct control on what request the handheld sends out. The client software on the handheld is made by Genesta for Voice Recognition, and it communicates with the server via XML.

Fortunately, Genesta is pretty good at coming out with quick fixes as well. This is my first experience with LiteSpeed, and I'm quite impressed so far, so hopefully we can get it worked out.
Reply With Quote
  #4  
Old 03-31-2008, 01:05 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Checked the tcpdump output, the client sent a HTTP GET request with request body, which does not follow HTTP specs. Should use "POST" request method.
Reply With Quote
  #5  
Old 04-01-2008, 10:19 AM
Jon Jon is offline
New Member
 
Join Date: Mar 2008
Posts: 4
Unfortunately, the company that makes the handheld voice software is not interested in changing the way the client makes its request. Apache, WEBrick, and IIS do not have a problem with handling the request. I love the LiteSpeed product, and will definitely keep my eye on it, as I would love to use it with our software! I guess I will stick with Apache/Mongrel for now.

Jon
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:25 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.