473,395 Members | 1,863 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,395 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 1998

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: 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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.