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
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Rewrite Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
hades666
Newbie
Newbie


Joined: 27 July 2010
Online Status: Offline
Posts: 6
Posted: 11 August 2011 at 6:06pm | IP Logged Quote hades666

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 View hades666's Profile Search for other posts by hades666
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 12 August 2011 at 3:07am | IP Logged Quote Anton

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 View Anton's Profile Search for other posts by Anton
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
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