Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

httpclient post raw json body

$response = Http::contentType('application/json')->send('POST', 'https://google.com', [
  'body' => '{"parameter1":"value1","parameter2":"value2"}'
])->body();
 
PREVIOUS NEXT
Tagged: #httpclient #post #raw #json #body
ADD COMMENT
Topic
Name
2+2 =