I think you will need to use a web service for this kind of operation. Have a look on HttpPostClientProtocol class in MSDN.
good luck
Main Topics
Browse All TopicsHow can I do an HTTP "Post" from a Windows Form using C# ? In other words, this needs to be similar to clicking the "Submit" button on a browser and "posting" the contents of a "Form", except from a Win32 application.
The idea is to have the user click on a button inside a Windows Form and "post" the values (name\value pair) of various textbox controls to a URI.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
In the documentation index for VS.NET, type "ClientPOST sample". This is a sample on how to use .NET classes to build a POST. There are other samples for building GETs and other web requests.
I have included the source in case you don't have direct access to MSDN.
Bg
******************** Copy from here **********************
using System;
using System.Net;
using System.IO;
using System.Text;
using System.Web;
class ClientPOST {
public static void Main(string[] args) {
if (args.Length < 1) {
showusage();
} else {
if (args.Length < 2 ) {
getPage(args[0], "s1=food&s2=bart");
} else {
getPage(args[0], args[1]);
}
}
Console.WriteLine();
Console.WriteLine("Press any key to continue...");
Console.ReadLine();
return;
}
public static void showusage() {
Console.WriteLine("Attempt
Console.WriteLine();
Console.WriteLine("Usage:"
Console.WriteLine("ClientP
Console.WriteLine();
Console.WriteLine("Example
Console.WriteLine("ClientP
}
public static void getPage(String url, String payload) {
WebResponse result = null;
try {
WebRequest req = WebRequest.Create(url);
req.Method = "POST";
req.ContentType = "application/x-www-form-ur
StringBuilder UrlEncoded = new StringBuilder();
Char[] reserved = {'?', '=', '&'};
byte[] SomeBytes = null;
if (payload != null) {
int i=0, j;
while(i<payload.Length){
j=payload.IndexOfAny(reser
if (j==-1){
UrlEncoded.Append(HttpUtil
break;
}
UrlEncoded.Append(HttpUtil
UrlEncoded.Append(payload.
i = j+1;
}
SomeBytes = Encoding.UTF8.GetBytes(Url
req.ContentLength = SomeBytes.Length;
Stream newStream = req.GetRequestStream();
newStream.Write(SomeBytes,
newStream.Close();
} else {
req.ContentLength = 0;
}
result = req.GetResponse();
Stream ReceiveStream = result.GetResponseStream()
Encoding encode = System.Text.Encoding.GetEn
StreamReader sr = new StreamReader( ReceiveStream, encode );
Console.WriteLine("\r\nRes
Char[] read = new Char[256];
int count = sr.Read( read, 0, 256 );
Console.WriteLine("HTML...
while (count > 0) {
String str = new String(read, 0, count);
Console.Write(str);
count = sr.Read(read, 0, 256);
}
Console.WriteLine("");
} catch(Exception e) {
Console.WriteLine( e.ToString());
Console.WriteLine("\r\nThe
} finally {
if ( result != null ) {
result.Close();
}
}
}
}
Business Accounts
Answer for Membership
by: ornelasoPosted on 2003-02-18 at 11:37:40ID: 7976551
HELP