Skip to content

curl request via PHP to method 'api/integrations/chat/system' return "error: EOF" #3333

Answered by SpectreZ64
SpectreZ64 asked this question in Q&A
Discussion options

You must be logged in to vote

My problem was invalid CURLOPT_POST and CURLOPT_HTTPHEADER params. For POST request need to be set CURLOPT_POST parameter to 1 and CURLOPT_HTTPHEADER as 'Content-Type: application/json'.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SpectreZ64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant