Answer the question
In order to leave comments, you need to log in
Why am I getting 400 Bad Request?
Hello! Not strong in parsing, so I ask for advice from experienced professionals. When a page of a site is requested by the curl, I get and display its content. There is a button on the site, when you click on it, the list of products is dynamically loaded in 20 pieces, I tracked it in the chrome debugger and found that there are some parameters that are most likely related to loading content with Ajax.
Do I understand correctly that these are post-parameters? If so, then I pass them to the request
$post = array(
'act' => 'data-more',
'page' => '3',
'eng' => '44536',
'sys' => 'guest',
);
$html = request('http://www.site.ru', $post);
echo $html;
Answer the question
In order to leave comments, you need to log in
Do I understand correctly that these are post-parameters? If so, then I pass them to the request
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question