The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
C# login into a vbulletin forum
Hi,
How can I log into a vb forum with C#? Thanks in advance! |
#2
|
||||
|
||||
What?
Don't understand your request. If I read correctly, you want to login to a vb forum with your customer number. Just to let you know, your customer number works ONLY on vBulletin.com, NOWHERE ELSE. |
#3
|
|||
|
|||
No just log in to a vbulletin forum. For exmaple, my own forum on my own website, with the language C#.
Desktop application |
#4
|
||||
|
||||
Your question is best suited for the vb3 programming section on vb.org.
|
#5
|
|||
|
|||
See if i can ask a mod to replace it!
--------------- Added [DATE]1267729324[/DATE] at [TIME]1267729324[/TIME] --------------- I found this code, after executing it in debug mode. The username can't be found in the content of the page: [CODE=] private string login(string url, string username, string password) { string values = "vb_login_username={0}&vb_login_password={1}" values += "&securitytoken=guest&cookieuser=checked&do=login" ; values = string.Format(values, username, password); HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url); CookieContainer a = new CookieContainer(); req.CookieContainer = a; System.Net.ServicePointManager.Expect100Continue = false; // prevents 417 error using (StreamWriter writer = new StreamWriter(req.GetRequestStream(), System.Text.Encoding.ASCII)) { writer.Write(values); } this.response = (HttpWebResponse)req.GetResponse(); StringBuilder output = new StringBuilder(); foreach (var cookie in response.Cookies) { output.Append(cookie.ToString()); output.Append(";"); } return output.ToString(); }[/CODE] What is it missing? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|