Cannot load URL: Server returned HTTP response code: 401 for URL: http://api-verify.recaptcha.net/verify

697 views
Skip to first unread message

jamestong

unread,
May 13, 2011, 2:06:29 PM5/13/11
to reCAPTCHA
I got this error thrown:

Cannot load URL: Server returned HTTP response code: 401 for URL:
http://api-verify.recaptcha.net/verify

Any idea about what is the potential cause?

PJH

unread,
May 14, 2011, 6:20:00 AM5/14/11
to reca...@googlegroups.com
That URL is now obsolete; it was deprecated last June[1] and obsoleted in March this year[2].

Link 2 tells you what the new URL is.

[1] http://groups.google.com/group/recaptcha/browse_thread/thread/7a4839d13ac3dcf5/a51be72cd56c1461?hl=en&lnk=gst&pli=1
[2] http://groups.google.com/group/recaptcha-announce/browse_thread/thread/c1ff6844420c9e63


--
You received this message because you are subscribed to the Google Groups "reCAPTCHA" group.
To post to this group, send email to reca...@googlegroups.com.
To unsubscribe from this group, send email to recaptcha+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/recaptcha?hl=en.




--
PJH


jamestong

unread,
May 16, 2011, 10:33:25 AM5/16/11
to reCAPTCHA
Thanks.

I am using recaptcha4j-0.0.7.jar, my client side recaptcha displays
well, once submitted, the server side check will always return:

net.tanesha.recaptcha.ReCaptchaException: Cannot load URL: Server
returned HTTP response code: 401 for URL: http://api-verify.recaptcha.net/verify

The exception actually thrown by
ReCaptchaResponse reCaptchaResponse =
reCaptcha.checkAnswer(remoteAddr, challenge, uresponse);


Based on previous update, api-verify.recaptcha.net/verify is now
www.google.com/recaptcha/api/verify

But how could I make this change in my code?


On May 14, 6:20 am, PJH <pauljherr...@gmail.com> wrote:
> That URL is now obsolete; it was deprecated last June[1] and obsoleted in
> March this year[2].
>
> Link 2 tells you what the new URL is.
>
> [1]http://groups.google.com/group/recaptcha/browse_thread/thread/7a4839d...
> [2]http://groups.google.com/group/recaptcha-announce/browse_thread/threa...

PJH

unread,
May 16, 2011, 10:36:09 AM5/16/11
to reca...@googlegroups.com


On Mon, May 16, 2011 at 3:33 PM, jamestong <jame...@ecquaria.com> wrote:

I am using recaptcha4j-0.0.7.jar

0.0.8 available at http://code.google.com/p/recaptcha4j/downloads/list

http://code.google.com/p/recaptcha4j/source/detail?r=24 would indicated that they've changed the URLs for that version.
--
PJH


jamestong

unread,
May 16, 2011, 10:56:07 AM5/16/11
to reCAPTCHA
I have replaced 0.0.7 with 0.0.8

However, the client side recaptcha displays
"An internal error occurred: 4A365C74B1E80.A143412.24D78FC9"

Below is my implementation of client side: (I tried both, but not
working)

(1)
<%
ReCaptcha c = ReCaptchaFactory.newReCaptcha("my public key",
"my private key", false);
out.print(c.createRecaptchaHtml(null, null));
%>


(2)
<script type="text/javascript"
src="http://www.google.com/recaptcha/api/challenge?k=my
public key">
</script>
<noscript>
<iframe src="http://www.google.com/recaptcha/api/noscript?k=my
public key"
height="300" width="500" frameborder="0"></iframe><br>
<textarea name="recaptcha_challenge_field" rows="3" cols="40">
</textarea>
<input type="hidden" name="recaptcha_response_field"
value="manual_challenge">
</noscript>






On May 16, 10:36 am, PJH <pauljherr...@gmail.com> wrote:
> On Mon, May 16, 2011 at 3:33 PM, jamestong <jamest...@ecquaria.com> wrote:
>
> > I am using recaptcha4j-0.0.7.jar
>
> 0.0.8 available athttp://code.google.com/p/recaptcha4j/downloads/list
>
> http://code.google.com/p/recaptcha4j/source/detail?r=24would indicated that

PJH

unread,
May 16, 2011, 11:05:34 AM5/16/11
to reca...@googlegroups.com
I can't help any further I'm afraid; never used that package, and a google search for the obvious isn't turning anything up.


--
You received this message because you are subscribed to the Google Groups "reCAPTCHA" group.
To post to this group, send email to reca...@googlegroups.com.
To unsubscribe from this group, send email to recaptcha+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/recaptcha?hl=en.




--
PJH


Tong, Liang

unread,
May 23, 2011, 11:41:36 AM5/23/11
to reca...@googlegroups.com
Now I use recaptcha4j-0.0.8.jar.

The front client UI displays well, but at backend,
 "    reCaptchaResponse.isValid()  "  always returns false.

The previous 401 exception gone.

May I know whether you have any idea to cause this please?
James Tong Liang
Software Production Engineer
Ecquaria Technologies Pte Ltd
D : (65) 6768 9770 ext 3043
M : (65) 9337 1733

E :  jame...@ecquaria.com
W : www.ecquaria.com

1 Yishun Avenue 7, #02-00 Agilent Building, Singapore 768923

|O: +65 6837 2822  |  F: +65 6756 3874

Company Registration No: 199806305H

STRICTLY CONFIDENTIAL - This message, its contents and any files transmitted with it are intended SOLELY for the addressee(s) and may be legally privileged and/or confidential. Access by any other party is unauthorised without the expressed written permission of the sender. If you have received this message in error, you may not copy or use the contents, attachments or information in any way. Please destroy it and contact us immediately via e-mail return or by telephone at (65) 68372822. This message has been prepared using information believed by the author to be reliable and accurate, but Ecquaria Technologies Pte Ltd and the Ecquaria Group of Companies ("Ecquaria") makes no warranty as to its accuracy or completeness. Ecquaria does not accept responsibility for changes made to this message after it was sent.
Reply all
Reply to author
Forward
0 new messages