T
T
Timur Evgazhukov2018-09-27 14:09:10
JavaScript
Timur Evgazhukov, 2018-09-27 14:09:10

How to use curl from the site if you need to log in?

There is a task to automate the download of a file (generated pdf) from a personal account. Access to a personal account is available. How to carry out such a download through curl or some other utilities?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stopy, 2018-09-27
@evgajukov

1) Determine which page handles the login / password, curl there with them.
2) Save login data (cookies)
3) Curl to pdf by attaching cookies
But in general, there can be pitfalls, for example, captcha when logging in, long authorization, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question