Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ecw_szilard97's avatar

How to ignore this error?cURL error 52: Empty reply from server (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

I know the server response is empty, but can I somehow ignore this error message? I make a HTTP api request to a external server he is doing well the job, but i got this error message.

cURL error 52: Empty reply from server (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

This is my code and I don't have a echo or something else witch show the error code.

$response = Http::get('http://externalserver.com/api'); Can I somehow ignore this message ?

0 likes
0 replies

Please or to participate in this conversation.