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

munyamakudzai095's avatar

Invalid Request (Malformed HTTP request)

I get this error when ever I try to send a post request on Postman. Post man is saying Could not get response Error hang up socket

the logs in laravel terminal

 2023-08-01 09:06:45 ................................................................................................................................................... ~ 0s
   WARN  127.0.0.1:64850 Invalid request (Malformed HTTP request).  

  2023-08-01 09:07:41 ................................................................................................................................................... ~ 0s
   WARN  127.0.0.1:64852 Invalid request (Malformed HTTP request).  

  2023-08-01 09:08:43 ................................................................................................................................................... ~ 0s
   WARN  127.0.0.1:64856 Invalid request (Malformed HTTP request).  

  2023-08-01 09:12:33 ................................................................................................................................................... ~ 0s
   WARN  127.0.0.1:64858 Invalid request (Malformed HTTP request).  

  2023-08-01 09:12:39 ................................................................................................................................................... ~ 0s
   WARN  127.0.0.1:49773 Invalid request (Malformed HTTP request).  

  2023-08-01 09:53:26 ................................................................................................................................................... ~ 0s
   WARN  127.0.0.1:49775 Invalid request (Malformed HTTP request).  

  2023-08-01 09:53:38 ................................................................................................................................................... ~ 0s
   WARN  127.0.0.1:49777 Invalid request (Malformed HTTP request).  

  2023-08-01 09:53:43 ......................................................

What could be the problem?

0 likes
3 replies
aruszala's avatar

@munyamakudzai095 if you're using http try to use https and see if you're still getting the same issue.

Also, try to disable the "Send Postman Token header" located in "Settings" under the "General" tab.

1 like
munyamakudzai095's avatar

@aruszala Hi. So i tried changing the settings in postman and it didnt work, then later i tried using thunder client and the get request worked but now trying to post data to the end point it is saying 403 | this action is unauthorized?

what could be the problem now?

Please or to participate in this conversation.