-2

the login page is here

https://login.linkshare.com/sso/login

can anyone tell me how to log in this website using php curl.

something special about this website is that the form on the above page has a action url which is a relative path.

Thank you very much!

Jay Wu
  • 57
  • 2
  • 7
  • Can you log on in a browser with JavaScript disabled? If so, you just need a browser component that has cookie support. I recommend Goutte, but there are several other approaches. – halfer May 06 '14 at 22:22

1 Answers1

1

It is quite simple, almost everything you'll need you can find in here.

Just pay attention to the 2 hidden fields that you need to retrieve first and then append to your request: lt and execution. There are more hidden fields but their values don't change.

Community
  • 1
  • 1
vsmoraes
  • 194
  • 2
  • 7