ASP.Net: HTTP 400 Bad Request error when trying to process http://localhost:5957/http://yahoo.com
- by mat3
I'm trying to create something similar to the diggbar : http://digg.com/http://cnn.com
I'm using Visual Studio 2010 and Asp Development server.
However, I can't get the ASP dev server to handle the request because it contains "http:" in the path. I've tried to create an HTTPModule to rewrite the URL in the BeginRequest , but the event handler doesn't get called when the url is http://localhost:5957/http://yahoo.com. The event handler does get called if the url is http://localhost:5957/http/yahoo.com
To summarize
http://localhost:5957/http/yahoo.com works
http://localhost:5957/http//yahoo.com does not work
http://localhost:5957/http://yahoo.com does not work
http://localhost:5957/http:/yahoo.com does not work
Any ideas?