المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Who can help me to solve this problem ?



C# Programming
01-20-2013, 11:42 AM
A 401 error occur when i use post method to login a website.

The website is: www.19lou.com/login

My username is: cyberarmy
My password is: wangyouliang


My C# code:

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Net;using System.IO;using System.Web; namespace _19lou{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } const string LoginUrl = @"http://www.19lou.com/login"; HttpWebRequest httpWebRequest; HttpWebResponse httpWebResponse; string responseFromServer; //<span class="code-comment">SendLogin