http://www.c-sharpcorner.com/forums/ShowMessages.aspx?ThreadID=84372
Then why don't you send directly a request to the script that is <form action="examplescript.php">
It's easy and all you have to do is use the HttpWebRequest class without opening the IE application.
This is a short sample code of what you should do:
HttpWebRequest req =(HttpWebRequest)WebRequest.Create("http://youraddress.com/examplescript.php");
//or whatever URI you want to go
req.Method = "POST"; // GET
//if you need more headers
req.Headers.Add("headerName", "headerValue");
HttpWebResponse resp = (HttpWebResponse)req.GetResponse();
// Insert code that uses the response object.
resp.Close();
Комментариев нет:
Отправить комментарий