Hi all!

Test case:

* Using Restlet 1.1.3, with Groovy 1.6.0 and Java 1.5.0_16 on Mac OS X
10.5.6 on an Intel Mac
* I have the two main Restlet JARs in my Groovy lib folder

I run this Groovy script:

---- BEGIN CODE ----

import org.restlet.*
import org.restlet.data.*

url = 'https://www.paypal.com/'

println 'Sending GET to ' + url

response = new Client(Protocol.HTTPS).get(url)

println 'Response: ' + response.status

if (response.isEntityAvailable())
        println response.entity.text
else
        println 'No Entity Available'

---- END CODE ----

I get this result:

---- BEGIN RESULT ---

Sending GET to https://www.paypal.com/
Mar 12, 2009 5:49:16 PM com.noelios.restlet.Engine createHelper
WARNING: No available client connector supports the required
protocols: 'HTTPS' . Please add the JAR of a matching connector to
your classpath.
Response: OK (200) - The request has succeeded
No Entity Available

---- END RESULT ----

I totally understand why this request didn't work, and why that
warning came up - because I don't have a HTTP connector available on
my classpath. But the status code of the response is troubling. 200!
Shouldn't it be something like 1000 or 1001, a connector error? 200
doesn't seem correct.

-- 
Avi Flax » Lead Technologist » Partner » Arc90 » http://arc90.com

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1314505

Reply via email to