注册并登录到SMF与CURL [英] Register And Login To SMF With CURL

查看:471
本文介绍了注册并登录到SMF与CURL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个拥有论坛区域的网站上工作,我可能会使用SMF论坛软件作为论坛。用户可以在网站上注册和登录。我想实现,当他们在网站上注册,他们也注册在论坛上(他们不必注册两次)。并且当他们登录到网站,也会将他们登录到论坛,所以他们不必两次登录。



我认为这应该是可能的curl,但我需要看到一些示例代码,所以我可以弄清楚。主要的问题是,在注册页面上有一个验证码,所以我不知道如何得到这个。

解决方案

在SMF论坛上有一个帖子,解释了如何使用cURL发布主题。
http://www.simplemachines.org/community/index。 php?topic = 53433.0



您可以使用相同的注册方法,只需使用不同的表单变量



附录:


主要的问题是在
注册页面上有一个验证码
不知道如何克服。


我认为关键是你不应该绕过验证码。 / p>

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.

解决方案

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.

这篇关于注册并登录到SMF与CURL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆