Using PHP & Curl to login to my websites form

前端 未结 6 2175
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-05 05:06

Im trying to login to my useraccount on a site i use to download files from so i can automatically grab the file without me having to visit the site.

This is

6条回答
  •  感动是毒
    2020-12-05 05:50

    You should send via POST all data that the orignal form is sending. So you are missing autologin=1&userlogin=Login in your $postdata.

    $postdata = "username=$username&userpass=$password&autologin=1&userlogin=Login";
    

提交回复
热议问题