D
D
Danil Sysoev2016-08-17 04:10:50
PHP
Danil Sysoev, 2016-08-17 04:10:50

How to parse a page other than the home page in this scenario?

Hello friends.
Faced such a problem.
It is necessary to parse the page on behalf of an authorized user. It turns out to log in, but the fact is that I can only parse the main page on behalf of users.
What problems arose:
1) There is no authorization on the site by cookies, only by session
2) All pages open in index.php and depend on the GET request. That is, index.php?cf='name_page'
3) Authorization is sent to the page at the address index.php?cf='auth', and to parse, for example, another page that I need, the address is already index.php?cf= 'other'. And due to the lack of cookies, a problem arises, because trying to parse it, I am again offered to go through authorization.
Tell me how you can get around this kind of barrier. Thank you very much in advance. The site I'm trying to log into: wmmail.ru

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2016-08-17
@YoungOldMan

1. session depends on cookies.
2. the first request for auth -> we get the necessary cookies, save them -> for all subsequent requests we use what we saved at the previous stage.
if parsed by a curl, then watch CURLOPT_COOKIEFILE and CURLOPT_COOKIEJAR .

A
Alexander Aksentiev, 2016-08-17
@Sanasol

1) There is no authorization on the site by cookies, only by session

okay

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question