Question

I want to sign in to a service (site) using PHP (without using its API) If the service login was with a and the method is 'GET', I would use

Service.com/signin.php?username=xxxx&password=xxxx

Now, the has a POST method how can I do so??

Thanks!!

Was it helpful?

Solution

You can send a POST request using PHP's cURL functions.

The relevant options are:

  • CURLOPT_POST
  • CURLOPT_POSTFIELDS
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top