curl / Mailing Lists / curl-users / 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: Can server tell I'm using curl?

From: David Colter via curl-users <curl-users_at_cool.haxx.se>
Date: Tue, 6 Apr 2021 09:43:10 -0400

Hello,

> On Apr 6, 2021, at 7:37 AM, Gilles via curl-users <curl-users_at_cool.haxx.se> wrote:
>
> As you can see, I first used Firefox to log on, and used an extension to export the cookies.
>
> Is the command wrong, or is the server somehow able to tell I'm using curl to forbid its use? I'm having the same problem with wget (but it might not understand the cookies file.)
>

You used a user-agent string and the server will not know that you are using cURL.

Since you are exporting the cookies, you are making an unautomated task. Let cURL and your script handle cookies for you. Read about this here. <https://curl.se/docs/http-cookies.html>

I would recommend that you use Firefox to perform the login request and picture request, then explore the Network tab of Web Developer Tools. There, you can alternate (right) click on the request, chose Copy > Copy as cURL.

David

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2021-04-06