How would I go about writing a simple PHP bot?

前端 未结 3 1187
执笔经年
执笔经年 2021-01-17 02:59

How would I go about writing a simple PHP bot that could login in and recieve all the cookies sent by the server? ... and then send them back when required?

Any sugg

3条回答
  •  [愿得一人]
    2021-01-17 03:09

    First of all, your question is too broad and lacking in detail to really answer effectively. That said, I'll give it a try.

    Not knowing what exactly you mean by "log in", I assume you want the script to be able to post some data to another script via an HTTP request. The CURL Library is good for that. It is able to post data and handle cookies.

    Edit: Got ninja'd by Zed. ;)

提交回复
热议问题