Answer the question
In order to leave comments, you need to log in
How to make a POST request in Guzzle?
Hello, please help me to make a request in guzzle;
I tracked this post request:
the result, as I understand it, is the json output
and I need to get it.
I tried different ways, but it does not work, apparently I'm doing something wrong.
$response = $client->post($url,[
'json' => [
'action' => 'mainPosts',
'offset'=> '0',
'postperpage' => '3',
'category' => '',
'tag '=> ''
]
]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question