curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Recv failure error under censorship conditions

From: Tomalak Geret'kal via curl-library <curl-library_at_cool.haxx.se>
Date: Thu, 15 Jul 2021 14:06:23 +0100

On 15/07/2021 13:50, Gealber Morales via curl-library wrote:
>
> The curious thing is that I can access google from the
> browser, and I tried another thing, I made the same
> request changing the `User-Agent` to simulate the request
> of a browser:
[..]
> In this case, I get the expected response, which is a
> redirection. 
>
> I imagine that they are blocking or making some filtering
> by `User-Agent` but not sure if it could be other reason,
> maybe you have an idea of what could be happening.

Since you only changed one thing, and that change made it
work, I think it's safe to assume that that one change was
the trigger.

Cheers

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html
Received on 2021-07-15