473,406 Members | 2,698 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,406 software developers and data experts.

Sending a POST request in C#

I am looking to send the same request that is being in the form, but I
would like to reproduce it in C# and get the response back. With
everything I have tried, it looks like I am getting back the invalid
password response page. Here is the HTML:

<HTML>
<HEAD>
<style>
</style>

<SCRIPT language=VBS>
'----------------------------------------------------------------------------
' Yahoo Auto Login, by Bill Scott
'----------------------------------------------------------------------------
' All HTML and script by Bill Scott, April, 2000
' bi*******@redrivernet.com
' http://lettermanstationery.tripod.com

Option Explicit

Dim loginName
Dim password

' Enter your login name and password values here.

loginName="MyLogin"
password="MyPassword"
Sub Window_OnLoad()
a.login.focus
a.login.value=loginName
a.passwd.value=password
a.submitButton.click
End Sub
</SCRIPT>

</HEAD>
<BODY bgcolor=#ffffff>

<!--YAHOO AUTO LOGIN-->
<form method=post action="http://login.yahoo.com/config/login?6ehju97hv688r"

autocomplete=off name=a>
<input type=hidden name=".tries" value="" >
<input type=hidden name=".src" value="ym" >
<input type=hidden name=".last" value="" >
<input type=hidden name="promo" value="" >
<input type=hidden name=".intl" value="" >
<input type=hidden name=".bypass" value="" >
<input type=hidden name=".partner" value="" >
<input type=hidden name=.chkP value="Y">
<input type=hidden name=".done" value="" >

<input name=login size=20 maxlength=32>
<input name=passwd type=password size=20 maxlength=32>
<input type=checkbox name=".persistent" value="Y" >
<input type=submit name=submitButton value="Sign in">

</BODY>
</HTML>
Nov 15 '05 #1
5 1796
Um, I have pretty much every POP3 comamnd there is in my class pop3cs..

You can download the whole solution here..

http://eggfamily.no-ip.org/apps/PostOffice.zi

I hope this can help.
Nov 15 '05 #2
Um, I have pretty much every POP3 comamnd there is in my class pop3cs..

You can download the whole solution here..

http://eggfamily.no-ip.org/apps/PostOffice.zi

I hope this can help.
Nov 15 '05 #3
Do you live in Herndon, Virginia

Nov 15 '05 #4
Do you live in Herndon, Virginia

Nov 15 '05 #5
Ecf Edington wrote:
I am looking to send the same request that is being in the form, but I
would like to reproduce it in C# and get the response back. With
everything I have tried, it looks like I am getting back the invalid
password response page. Here is the HTML:


You should rather post your code...

Cheers,
--
Joerg Jooss
jo*********@gmx.net

Nov 15 '05 #6

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

Similar topics

3
by: Beryl Small | last post by:
Hi, I have a third party software that needs to send information to an .aspx page for processing to communicate with an SQL database. The software sends the information something like this: ...
4
by: Maximus | last post by:
Hi everyone, I was wondering if anybody could help me with sending xml as part of an http post. Any help will be greatly appreciated. Thanks.
4
by: Christina N | last post by:
What is the easiest way to make an ASP.Net application send data to another web-app? For instance I would like APP3 to log user stats from APP1 and APP2. The applications are located on different...
5
by: Vishal | last post by:
Hello, I already asked this question in the ASP.NET forums, but no help came. So I am hoping that somebody can help me out. This is really very URGENT me. For my e-commerce application, I...
3
by: Sydney | last post by:
Hi, I am trying to construct a WSE 2.0 security SOAP request in VBScript on an HTML page to send off to a webservice. I think I've almost got it but I'm having an issue generating the nonce...
2
by: barrybevel | last post by:
Hi, I have a very small simple program below which does the following: 1) post a username & password to a website - THIS WORKS 2) follow a link - THIS WORKS 3) update values of 2 fields and...
0
by: sanjaygupta11 | last post by:
I am using httpwebrequest and httpwebresponse objects for sending data to remote appication by post and receiving the response from there. I am using this code in my windows application which will...
2
by: jabdulius | last post by:
Hi all, I'm trying to send a page using Perl via the WCTP protocol. For some reason, I cannot connect to the host "wctp.att.net/WCTP" (or any host for that matter). I figure it must be some...
5
by: lanclot | last post by:
hi i am trying to authenticate a user using ClientLogin by sending a post to https://www.google.com/accounts/ClientLogin in my c program use ssl and socket the next code is my request:...
2
by: lstanikmas | last post by:
Hi, I'm validating a form with this ASP but receiving some blank email responses; does anyone see anything wrong with it?: function isFormVarExcluded(thisForm, strToCheck) { var strExcludeVars...
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?
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:
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.