In certain cases, I want to send a 302 redirect back to the same page. For example, if I have a random datastore error, I could redirect them to the same page, having them automatically retry.
我在火法英和神hr中测试了这一情况,并做了一些细微的工作。
In certain cases, I want to send a 302 redirect back to the same page. For example, if I have a random datastore error, I could redirect them to the same page, having them automatically retry.
我在火法英和神hr中测试了这一情况,并做了一些细微的工作。
No, you cannot rely on the idea that ANY browser will reload a page given a 302 to the same path. Some will follow the HTTP spec and choose not to retry the request, instead telling the user that it has encountered an infinite redirect loop.
For this reason you might be better off using a JavaScript location redirect.
归根结底,你们应当让用户在需要时等待回复,才能得到正确的回应。 因此,如果你能够进入数据库,那么在答复请求时,你的网络应用就应当停止,直到它能够进入数据库并形成答复,或者在某个门槛时,你选择并告诉用户它有错误,即500或404。
回顾404份不是GONE(410)和“404个错误”表明,今后可再次获得请拨的资源。 http://www.w3.org/ protocols/rfc2616/rfc2616-sec10.html#sec10.5.4“rel=“nofollow”>503。
In trying to determing a if a specific connection is supported, I m cofused about the difference between CoverageInfo.getCoverageStatus() and CoverageInfo.isCoverageSufficient(). For example: // ...
I am returning a stream in some response setting the appropriate content-type header. The behavior I m looking for is this: If the browser is able to render content of the given content type then it ...
>>> a=urllib.urlopen( http://www.domain.com/bigvideo.avi ) >>> a.getcode() 404 >>> a=urllib.urlopen( http://www.google.com/ ) >>> a.getcode() 200 My question is......
friendfeed.com uses 302. bit.ly uses 301. I had decided to use 303. Do they behave differently in terms of support by browsers ?
I am wondering if there is a straightforward way to use .NET s built in HTTP support to parse arbitrary bytes into nice HTTP requests and responses. For example, I would like to be able to pass in a ...
Background: I am implementing Paypal IPN handler. This great article on Paypal states that I am required to send a 200 OK back to Paypal after I read the response. The processing of IPN request is ...
我试图把桌面应用程序连接起来,我是同D.icio.us api @ Delicious Alan书写的,简单地向他们提供我的用户名和密码,并请他把书记上写给我......。
I m using curl to make php send an http request to some website somewhere and have set CURLOPT_FOLLOWLOCATION to 1 so that it follows redirects. How then, can I find out where it was eventually ...