hiay
V2EX  ›  问与答

有没有可能实现 php 挂论坛在线?

  •  
  •   hiay · Apr 26, 2014 · 3598 views
    This topic created in 4576 days ago, the information mentioned may be changed or developed.
    思考了一下 论坛好像没有qq一样的sid 该怎么实现?
    4 replies  •  1970-01-01 08:00:00 +08:00
    oppressed6370
    oppressed6370
    Apr 26, 2014❤️1
    1
    用curl保存cookie,然后再模拟登陆
    wtbhk
    wtbhk
    Apr 26, 2014
    2
    @cyokvip 人工登录一次,提取cookie,用curl请求首页就可以。
    oppressed6370
    oppressed6370
    Apr 26, 2014
    3
    @wtbhk 这样也可以把,cookie用curl登录后,保存这个cookie到文件,下次再用curl提交时候把这个cookie文件也加进来
    akira
    akira
    Apr 27, 2014
    4
    把模拟登录也做了就行了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5652 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 03:27 · PVG 11:27 · LAX 19:27 · JFK 22:27
    ♥ Do have faith in what you're doing.