Re: How do I get around a captcha challenge?

ToddAndMargo via curl-users <[email protected]> Sun, 10 Aug 2025 03:18:55 -0700
Newsgroups gmane.comp.web.curl.general
Message-ID <[email protected]>
On 8/10/25 2:03 AM, ToddAndMargo via curl-users wrote:
> On 8/9/25 10:37 PM, Dan Fandrich via curl-users wrote:
>> On Sat, Aug 09, 2025 at 10:12:21PM -0700, ToddAndMargo via curl-users 
>> wrote:
>>> How do I get around the CAPTCHA challenge on this web site?
>>>
>>> https://www.eset.com/us/home/internet-security/#download-manually
>>
>> I'm not seeing a CAPTCHA on that site. Downloading the direct URL works
>> with curl for me. If you're seeing a CAPTCHA, then the site probably 
>> doesn't
>> like the IP address or browser you're on or for whatever reason 
>> doesn't want to
>> allow a scripted download. And if there were an easy way to bypass 
>> that CAPTCHA
>> when it appears, then the whole purpose of putting a CAPTCHA in the 
>> download
>> flow has failed.
>>
>> Dan
> 
> 
> Now this is interesting.   I can run it from the command line
> 
> curl https://www.eset.com/us/home/internet-security/#download-manually 
> --output eraseme2.html
> 
> and no problem.
> 
> 
> But if I call it from my Raku curl module:
> 
>     my Str $WebSite     = "--connect-timeout " ~ %MaxTime<MaxTime1> ~ " 
> https://www.eset.com/us/home/internet-security/download/#download- 
> manually";
> 
>     ( $WebPage, $PageStatus ) = CurlGetWebSite( $WebSite );
> 
> 
> Hmmmmmmmmmmmmm.
> 
> I will try different user agent strings and see what happens.
> 
> 
> 
> 


 From the command line, I am now getting

curl -v --connect-timeout 20 
https://www.eset.com/us/home/internet-security/download/#download-manually 
--output eraseme3.htm

"permanently moved"

-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html