473,651 Members | 2,644 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="Web Form1.aspx.cs" AutoEventWireup ="false" Inherits="WebCl ient.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1 </title>
<meta name="GENERATOR " Content="Micros oft Visual Studio 7.0">
<meta name="CODE_LANG UAGE" Content="C#">
<meta name="vs_defaul tClientScript" content="JavaSc ript">
<meta name="vs_target Schema" content="http://schemas.microso ft.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.c s--------------------------------------------------
using System;
using System.Collecti ons;
using System.Componen tModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Text.Reg ularExpressions ;
using System.IO;
using System.Web;
using System.Web.Sess ionState;
using System.Web.UI;
using System.Web.UI.W ebControls;
using System.Web.UI.H tmlControls;
using System.Net;
using System.Collecti ons.Specialized ;
namespace WebClient
{
public class WebForm1 : System.Web.UI.P age
{
protected System.Web.UI.W ebControls.Butt on Button1;

#region Web Form Designer generated code
override protected void OnInit(EventArg s e)
{
//
//
InitializeCompo nent();
base.OnInit(e);
}
private void InitializeCompo nent()
{
this.Button1.Cl ick += new System.EventHan dler(this.Butto n1_Click);

}
#endregion

private void Button1_Click(o bject sender, System.EventArg s e)
{
try
{
// Download the data to a buffer.

System.Net.WebC lient client = new System.Net.WebC lient();

//client.
Byte[] pageData = client.Download Data("http://signin.ebay.com/ws1/eBayISAPI.dll?M fcISAPICommand= MakeBid&item=57 03948646&co_par tnerid=&quantit y=1&maxbid=335& placebid=Bid+Ag ain+%3E.");
WebHeaderCollec tion myWebHeaderColl ection = client.Response Headers;

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

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

// Add form data

form.Add("MfcIS APICommand", "MakeBid");
form.Add("item" ,"5703948646 ");
form.Add("maxbi d","US $335.00");
form.Add("quant ","1");
form.Add("useri d","");
form.Add("key", "$2$13400446$NI vqcQYD7KdSclr65 dbJk0");
form.Add("javas criptenabled"," 1");
form.Add("mode" ,"1");

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

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

Response.Write( Encoding.ASCII. GetString(respo nseData));

}

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+P3QVPH60K JT1gi6OG97g==</Id>
Jul 21 '05 #1
0 2036

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

Similar topics

0
1845
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 php page with mysql connections I get an Window NT prompt, which I type either mysql or window username/password combinations and always get "Wrong username/password" Any idea what it might be...all permission on the directory are open for...
3
1328
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
2403
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 member's record from a database and populate the control with the member's password. Unfortunately, if the control declared on the .aspx side is as follows: <input type="password" id="txtPassword" runat="server"/>
3
1541
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, etc. I would like to do the same thing for one of my sites. Does anybody know how to generate a password like this, and/or if there's a successful "standard" for doing it?
0
415
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 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...
2
3823
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 anybody have the solution. Thanks in advance. code :
4
4022
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 this page" The customer doesn't want their users remembering their password as it's confidential data they're viewing, so don't want them to even have the choice. Is there something we can add to the pages to stop it asking ?
2
4405
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 doubleclick on my database to open it, I type in the same password and it says "Not a valid password". I have 4 different applications with the same code (except for queries) and 2 out of those give me that problem. Any idea as to what the problem...
3
4303
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 in \anmeldung2.cfm: line 404
0
8349
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8275
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8695
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8576
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6157
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4281
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1906
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1585
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.