Invalid verb showing in Reponse.Redirect - c#

I have a page redirection code like this Response.Redirect(..//Home//Index.aspx); The code gives Invalid verb 400 error. But if i change Response.Redirect to Server.Transfer the code works fine. Also the Response.Redirect code works fine if i access the page with localhost but if i access it with IP i get invalid verb 400 error. The code works fine outside of my network. The 400 code comes only in chrome and not in firefox. I know in case of Reponse.Redirect the browser will initiate a 302 GET request but why is it showing invalid verb?

Related

Fiddler showing 404 but the site is loading

Wen m trying to fire an api through the fiddler, its showing 404. On the other hand, the site is loading properly.
Your sites loads successfully, cause your 2nd request shows a 200 for localhost (and I bet this is a GET request). After the site is loaded, it seems to contain some javascript code that tries to connect to some login site (with POST to aaweb.authorassists.com) and that fails.

Unable to view stylesheet in chrome

Tried to run http://localhost:30832/stylesheet/login.css but it returned
This localhost page can’t be found No webpage was found for the web
address: http://localhost:30832/stylesheet/login.css HTTP ERROR 404
What is happening? I am very sure the naming is correct and it exists.

Downloading files to remote server HTTP 400 error

Program uses DownloadString function of Web.Client.
The url's I have tried so far:
http://xxx.xxx.x.xx/blabla.ashx?command=blabla - Http 404
http://xxx.xxx.x.xx:port/blabla.ashx?command=blabla - Http 400
When I type
http://xxx.xxx.x.xx
IIS page shows up as expected.
Problem solved now. It seems you have to add a binding to IIS to use an address in remote machine.

PayPal IPN getting 405: method not allowed

So I can call my IPN handling page (an aspx page) happily using Fiddler to POST a fairly accurate version of what the IPN should be sending, and it works fine. However, as soon as I use the IPN test tool or try a 'real' transaction it throws a 405:
2012-01-25 18:46:55 193.128.120.227 POST /paypal_notify.aspx - 80 - 173.0.82.126 - 302 0 0
2012-01-25 18:46:55 193.128.120.227 POST /403_error.htm - 80 - 173.0.82.126 - 405 0 1
I just can't figure it out. Calling an ASP page from IPN works fine but ASPX and ASHX both throw 405s. And yet POSTing to the page myself isn't a problem.
If anyone's got any ideas what might cause this I'd be really grateful!
Well, you first do a redirect to an error page. Paypal tries a POST to /403_error.htm and since that should probably be a GET you get the 405. Something is probably wrong in your paypal_notify.aspx in the first place.
403 means forbidden, so do you have any security scheme that throws the 403?
You might want to post the code you use in paypal_notify.aspx so we can figure out what is causing the 302 to the error page for 403.

Does ASP.NET Custom Errors override the actual HTTP response code?

If I were to specify a page for redirect using the ASP.NET Custom Errors feature, would my application still spit out the HTTP status code for that particular error?
For example if had a line in my web.config that had all Internal Server Errors redirect to Errors/500.aspx and then I encountered a 500 error, I would then be redirected to my custom Errors/500.aspx page. Will my application still respond with a HTTP 500 at any point in this exchange?
I'm just curious...
No, because your browser would interpret that 500 response as an error and show you it's error. Instead, it probably responds with one of the redirect status codes to send you to the defined error page.

Categories

Resources