Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: need help with HTTP socket [PHP] pls help  (Read 8178 times)

0 Members and 1 Guest are viewing this topic.

thomasx

  • Newbie
  • *
  • Posts: 1
    • View Profile
need help with HTTP socket [PHP] pls help
« on: February 11, 2021, 06:12:45 pm »
the first part with receiving data was explained quite good which im thankful for. and it worked i fetched data
from  my http website without a problem
but now the problems is the following..

so basically from the tutorial i cant quite understand the second part... =(
i've written it like this look the pictures. the problem is
that nothing happens i have the following error from the picture
please tell me how to fix it with php.. i just want to $echo the values nothing else.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: need help with HTTP socket [PHP] pls help
« Reply #1 on: February 15, 2021, 08:43:39 am »
You probably have to the the header Content-Type to application/x-www-form-urlencoded, so that the PHP server knows in what format to expect the request body to be in.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything