N
N
NeTLeaDeR2016-08-04 20:22:20
PHP
NeTLeaDeR, 2016-08-04 20:22:20

How to simulate a user request to a website via cURL?

I need to use cURL to simulate a user request to a website. Those. the user visits a page on my site, and the code sends a request via cURL to the site that I need.
Actually, the question itself is: Can I somehow get the user's cookie from another site in order to make a request via cURL? Or is there another way?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Aksentiev, 2016-08-04
@Sanasol

it is forbidden

M
Michael, 2016-08-04
@springimport

Well, probably, you need to do it in js. Try to do. Without breaking the law.

A
Andrey, 2016-08-05
@a_ovchinnikov

The user's browser security policies will prevent you from receiving a Cookie for a domain other than the current one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question