O
O
Oleg Belyay2017-10-26 21:21:53
PHP
Oleg Belyay, 2017-10-26 21:21:53

How to specify Authorization in the header of the request to the site?

I am making a parser. On the page of the victim's site, the content is loaded by ajax and json is returned.
I'm trying to parse json, but the site is resisting. Writes:

{"errors":["OAuth error: The access token is invalid"]}

It is necessary to specify somehow in the request header - Authorization.
When you enter the site, you get it, under the user.
How can this be done?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nozzy, 2017-10-26
@nozzy

Feel free to
use: jonnnnyw.github.io/php-phantomjs

E
Egor, 2017-10-27
@egormmm

The service usually issues access tokens.
This token must be specified in the request headers.
Usually, detailed instructions are given in the service API help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question