473,386 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

WebClient - input type="password"

What I am trying to is automatic bidding process in Ebay site...

WebClient class can uploads form data easily.

I have collected ebay url & form data to uploads..
Most of process is quite easy and simple. But ebay webserver send me your password is not valid...
But the password is clearly correct.. you can type it at the result page and submit. Then you can see a message - bidding has ended and you are logged in. <- This is the message I want.

I can not find where is a wrong part. Some code is worng?? Or whole different way..? Please help me~~~~

here is the code------------------------------------------------------------

WebForm1.aspx--------------------------------------------------
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="WebClient.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:Button id="Button1" style="Z-INDEX: 101; LEFT: 200px; POSITION: absolute; TOP: 32px" runat="server" Text="Button"></asp:Button>
</form>
</body>
</HTML>

WebForm1.aspx.cs--------------------------------------------------
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Text.RegularExpressions;
using System.IO;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Net;
using System.Collections.Specialized;
namespace WebClient
{
public class WebForm1 : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Button Button1;

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
//
InitializeComponent();
base.OnInit(e);
}
private void InitializeComponent()
{
this.Button1.Click += new System.EventHandler(this.Button1_Click);

}
#endregion

private void Button1_Click(object sender, System.EventArgs e)
{
try
{
// Download the data to a buffer.

System.Net.WebClient client = new System.Net.WebClient();

//client.
Byte[] pageData = client.DownloadData("http://signin.ebay.com/ws1/eBayISAPI.dll?MfcISAPICommand=MakeBid&item=5703948 646&co_partnerid=&quantity=1&maxbid=335&placebid=B id+Again+%3E.");
WebHeaderCollection myWebHeaderCollection = client.ResponseHeaders;

for (int i=0; i < myWebHeaderCollection.Count; i++)
{
Response.Write(myWebHeaderCollection.GetKey(i) +":"+ myWebHeaderCollection.Get(i)+"<br>");
}
// Upload some form post values.
NameValueCollection form = new NameValueCollection();

Response.Write("-------------------------------------------------<br>");

// Add form data

form.Add("MfcISAPICommand", "MakeBid");
form.Add("item","5703948646");
form.Add("maxbid","US $335.00");
form.Add("quant","1");
form.Add("userid","");
form.Add("key","$2$13400446$NIvqcQYD7KdSclr65dbJk0 ");
form.Add("javascriptenabled","1");
form.Add("mode","1");

form.Add("user","kmmccc");

form.Add("pass","rlaaudcks");
Byte[] responseData = client.UploadValues("http://offer.ebay.com/ws/eBayISAPI.dll", form);

Response.Write( Encoding.ASCII.GetString(responseData));

}

catch (WebException webEx)
{
Response.Write( webEx.ToString());
}

}
}
}
-------------------------------------------------------------------------------------

--------------------------------
From: mc kim in Korea

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>w+P3QVPH60KJT1gi6OG97g==</Id>
Jul 21 '05 #1
0 1997

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: yurps | last post by:
Hello, I installed both, 1st mysql 4.1.7 but heard there was a change with password hashing so now got 4.0.9 Basically when I choose a page with php_info() I can load it fine, but when I call a...
3
by: Hernán Castelo | last post by:
hi how the password is posted from the client to IIS? is encripted? or ... plain-text...? could it easily be decripted or viewed ? thanks
2
by: Chris Barrow | last post by:
Hi everyone, Does anyone know if there is a problem populating a system.web.ui.htmlcontrols.htmlinputtext control when the control's type is set to "password?" I am attempting to retreive a...
3
by: Bill Borg | last post by:
Hello all, Not sure what to call it, but when you go to some sites, you are forced to retype a graphic (looks like graffiti) password to continue. I presume this is to thwart bots, DOS attacks,...
0
by: mc kim via .NET 247 | last post by:
What I am trying to is automatic bidding process in Ebay site... WebClient class can uploads form data easily. I have collected ebay url & form data to uploads.. Most of process is quite easy...
2
by: Tarkeshwar | last post by:
Hi All, I want to restrict the user from being entering the value in <input type="file">. It works fine in IE but not in Mozilla. I am sending my code also which works in IE and not in Mozilla.Can...
4
by: Adrian Parker | last post by:
In asp.net, is there any way of stopping the browser from outputting the message.. "Do you want Windows to remember this password, so that you don't have to type it again the next time you visit...
2
by: btguser | last post by:
Visual Basic 6 Access 97 Windows 2000 I created a database programmatically with vb. My application is able to create and open the database with the password I set. However, when I manually...
3
by: blackrunner | last post by:
ERROR in my Query?! ERROR: Element GESCHLECHT is undefined in FORM. i think everything ok. Maby somebody can help me here Element GESCHLECHT is undefined in FORM. The error occurred...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.