This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Rewrite
Author
Message |
hades666
Newbie


Joined: 27 July 2010
Posts: 6
Posted: 11 August 2011 at 6:06pm

Hi,

Our company is running a legacy www retrieve application from 1995 that is failing after the migration. I seem to have tracked the issue down to the HEADER values being passed to the server.
 
HTTP/V1.0

When the application calls the web page normally, IIS responds with a basic 400 error. httperr.log is giving the following.
 
2011-08-11 20:01:33 10.10.10.14 741 10.10.10.14 80 HTTP/0.0 GET /page.htm 400 - BadRequest -
2011-08-11 20:02:11 10.10.10.14 2795 10.10.10.14 80 HTTP/0.0 GET /page.htm 400 - BadRequest -
 
When i call it directly through Fiddler using a crafted header, i get the same error.
 
IIS6 Windows 2003 Standard
GET /page.htm HTTP/V1.0
User-Agent: www_Retriever
Accept: */*
Host: serverA

HTTP/1.1 400 Bad Request
Content-Type: text/html
Date: Thu, 11 Aug 2011 19:59:22 GMT
Connection: close
Content-Length: 20
 
However, When I call it directly through Fiddler using a proper crafted header for HTTP/1.0, the page is retrieved and IIS responds properly. Even though all i changed was the HEADER to HTTP/1.0 and not HTTP/V1.0.

So, is it possible to use the rewriteheader option to rewrite the incoming header before IIS processes the request?

-Hades666 

Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 12 August 2011 at 3:07am

The problem is that GET is not actually a header, headers start after it, so it's rather problematic to rewrite it.

__________________
Regards,
Anton
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum