Answer the question
In order to leave comments, you need to log in
Is it possible to emulate ajax post with SAMEORIGIN security via CURL in PHP?
For example, here is the page: 37.220.36.15/video/3c6e6f3bf0ebfd19/iframe
It has the following JS code:
$.post('/sessions/create_session', {
partner: null,
d_id: 21609,
video_token: '3c6e6f3bf0ebfd19',
content_type: 'movie',
access_key: '0fb74eb4b2c16d45fe',
cd: condition_detected ? 1 : 0
}).success(function(video_url) ...
Answer the question
In order to leave comments, you need to log in
Understood. It was all about the X-CSRF-Token and Content-Data headers, which were dynamically generated on the page.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question