Search code examples
phpcurlsmf

Register And Login To SMF With CURL


I'm working on a website that has a forum area, I will probably use the SMF forum software for the forum. Users can register and log in on the website. I would like to achieve that when they register on the website, they get also registered on the forum (they don't have to register twice). And also when they log in to the website that would also log them into the forum so they don't have to log in twice.

I think this should be possible with curl but I need to see some example code so I can figure it out. The main problem is that on the registration page there is a captcha so I don't know how to get over that.


Solution

  • There's a post on the SMF forums that explains how to post a topic with cURL. http://www.simplemachines.org/community/index.php?topic=53433.0

    You could use the same method for registration, just using different form variables

    Addendum:

    The main problem is that on the registration page there is a captcha so I don't know how to get over that.

    I think the point is that you're not supposed to bypass the captcha.