这是登录页面:http ://ts14.travian.com.sa/nachrichten.php
我希望程序从文本框和我简单的浏览器中发布用户名和密码:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
webBrowser1.Navigate(textBox1.Text);
}
private void Form1_Load(object sender, EventArgs e)
{
webBrowser1.Navigate("http://ts14.travian.com.sa");
textBox1.Text = "متصفح خاص بترافيان";
}
private void button5_Click(object sender, EventArgs e)
{
webBrowser1.GoBack();
}
private void button4_Click(object sender, EventArgs e)
{
webBrowser1.GoForward();
}
private void button3_Click(object sender, EventArgs e)
{
webBrowser1.Navigate(label1.Text);
}
private void button2_Click(object sender, EventArgs e)
{
webBrowser1.Refresh();
}
private void label1_Click(object sender, EventArgs e)
{
}
private void button6_Click(object sender, EventArgs e)
{
webBrowser1.Navigate("http://ts14.travian.com.sa/logout.php");
}
private void button7_Click(object sender, EventArgs e)
{
webBrowser1.Navigate(textBox2.Text);
}
private void closeToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Close();
}
private void tabPage2_Click(object sender, EventArgs e)
{
}
}
}
我需要做什么才能让浏览器登录游戏?