I created a generic handler (similar to a web page) Handler1.ashx.
When I browse to http://localhost:50824/Handler1.ashx
the handler is called. So it is working.
But when I set Firefox's Settings to Manual proxy configuration
(in Advanced-Network-(Connection)-Settings) with the proxy being: localhost/Handler1.ashx
Port 50824
and then browse the web (e.g. http://Microsoft.com
) I get an error Server not found
.
Why is the handler not being called by Firefox?
EDIT
I tried using localhost
only, and setting the handler as the default page. As before, browsing to localhost:50824 works. But Firefox doesn't call the page (and I get an HTTP Error 400. The request hostname is invalid.
error).
localhost/Handler1.ashx
is not a valid host name. Perhaps we can help with a little more info... Why do you expect your generic HTTP handler is going to work as a web proxy?http://localhost:50824/Handler1.ashx
so I know the handler is "activated".localhost
with the port. It didn't work. (Since it didn't help - I didn't mention it. Assuming that I'm missing something else here.) And as before - browsing tohttp://localhost:50824
does work. Firefox, on the other hand, never calls it.