Jump to content


Photo

Looking for PHP login to the external website with curl example and how to handle with redirections.

curl login php example

  • Please log in to reply
1 reply to this topic

#1 pcman

pcman
  • Members
  • PipPipPip
  • Advanced Member
  • 37 posts

Posted 09 April 2017 - 08:27 PM

somebody have an example or reference for PHP code that make login to a website and handle with the redirection after?

thanks!



#2 Jacques1

Jacques1
  • Members
  • PipPipPip
  • Turtles all the way down
  • 4,224 posts

Posted 09 April 2017 - 08:36 PM

There are literally millions of results when you just do a Google search. So what have you tried? What exactly do you not understand?

 

There's nothing special about log-ins. You need a cookie jar, and redirects are enabled with the CURLOPT_FOLLOWLOCATION parameter.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users