[EMAIL PROTECTED] wrote:
Author: cziegeler
Date: Wed Jul 27 12:50:33 2005
New Revision: 225589

URL: http://svn.apache.org/viewcvs?rev=225589&view=rev
Log:
This hopefully fixes bug EXLBR-19

+                    // check the status code for exists
+                    // if the url does not exists we might also get an 
IOException here!
+ try + {
+                        final int statusCode = 
((HttpURLConnection)m_connection).getResponseCode();
+                        if ( statusCode == 200 || statusCode == 303 || 
statusCode == 304 )
+                        {

Are you sure you meant 303 [1]? Then you should include 301 and 307 as well.

Also, codes 500, 502, 503, 504 can happen on existing resource depending on server(s)/network load [2].


Vadim

+                            m_exists = true;
+ } + else
+                        {
+                            m_exists = false;
+ } + }


[1] 10.3.4 303 See Other

The response to the request can be found under a different URI and SHOULD be retrieved using a GET method on that resource. This method exists primarily to allow the output of a POST-activated script to redirect the user agent to a selected resource.

[2] http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to