Click here to Skip to main content
15,746,973 members
Home / Discussions / C#
   

C#

 
QuestionInstallation and automatic start for a service Pin
terrible834-Jul-07 7:38
terrible834-Jul-07 7:38 
AnswerRe: Installation and automatic start for a service Pin
Joseph Guadagno4-Jul-07 7:53
Joseph Guadagno4-Jul-07 7:53 
Questiontime out exception while uploading to FTP [modified] Pin
Iftekhar Naim4-Jul-07 7:04
Iftekhar Naim4-Jul-07 7:04 
Questiongmail notifier when a new mail comes Pin
mfmaneef4-Jul-07 5:26
mfmaneef4-Jul-07 5:26 
QuestionRe: gmail notifier when a new mail comes Pin
Urs Enzler4-Jul-07 5:49
Urs Enzler4-Jul-07 5:49 
AnswerRe: gmail notifier when a new mail comes Pin
mfmaneef4-Jul-07 6:02
mfmaneef4-Jul-07 6:02 
JokeRe: gmail notifier when a new mail comes Pin
Urs Enzler4-Jul-07 6:05
Urs Enzler4-Jul-07 6:05 
Questionc# Pin
ravilikesaboli4-Jul-07 5:20
ravilikesaboli4-Jul-07 5:20 
i want a code like given below in which when i send the URL the CAPTCHA inside it should also come. here the problemis that the CAPTCHA has no specific number or id
it has only reference site and when we click it the captcha always changes. so plz give me a code that gives the appropriate captcha
private string send_Request_Data(string link, string post_data)
{
string url = string.Format(link);
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
//if (proxy_enabled && proxy != null)
{
//request.Proxy = proxy;
}
request.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30) Firefox/0.9.2";
request.Method = "GET";
request.Accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/xaml+xml, application/vnd.ms-xpsdocument, application/x-ms-xbap, application/x-ms-application, */*";
request.KeepAlive = true;
request.ContentType = @"application/x-www-form-urlencoded";
request.Referer = string.Format("http://www.bebo.com");
request.CookieContainer = new CookieContainer();
request.CookieContainer.Add(cookies);
if (post_data != null)
{//post the data to the desired link
string postData = string.Format(post_data);
request.Method = "POST";
byte[] postBuffer = System.Text.Encoding.GetEncoding(1252).GetBytes(postData);
request.ContentLength = postBuffer.Length;
Stream postDataStream = request.GetRequestStream();
postDataStream.Write(postBuffer, 0, postBuffer.Length);
postDataStream.Close();
}
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
response.Cookies = request.CookieContainer.GetCookies(request.RequestUri);
cookies.Add(response.Cookies);
Encoding enc = System.Text.Encoding.UTF8;
StreamReader responseStream = new StreamReader(response.GetResponseStream(), enc, true);
string responseHtml = responseStream.ReadToEnd();
response.Close();
responseStream.Close();
return responseHtml;
}

AnswerRe: c# Pin
Christian Graus4-Jul-07 5:35
protectorChristian Graus4-Jul-07 5:35 
AnswerRe: c# Pin
Dave Kreskowiak4-Jul-07 5:36
mveDave Kreskowiak4-Jul-07 5:36 
GeneralRe: c# Pin
Christian Graus4-Jul-07 5:37
protectorChristian Graus4-Jul-07 5:37 
GeneralRe: c# Pin
Dave Kreskowiak4-Jul-07 15:29
mveDave Kreskowiak4-Jul-07 15:29 
GeneralRe: c# Pin
Vikram A Punathambekar4-Jul-07 16:42
Vikram A Punathambekar4-Jul-07 16:42 
GeneralYou did it again my friend! Pin
Martin#4-Jul-07 5:36
Martin#4-Jul-07 5:36 
GeneralRe: You did it again my friend! Pin
Luc Pattyn4-Jul-07 6:04
sitebuilderLuc Pattyn4-Jul-07 6:04 
GeneralRe: You did it again my friend! Pin
Christian Graus4-Jul-07 6:12
protectorChristian Graus4-Jul-07 6:12 
GeneralRe: You did it again my friend! Pin
mav.northwind4-Jul-07 10:11
mav.northwind4-Jul-07 10:11 
GeneralRe: You did it again my friend! Pin
Christian Graus4-Jul-07 10:33
protectorChristian Graus4-Jul-07 10:33 
JokeRe: You did it again my friend! Pin
Luc Pattyn4-Jul-07 10:41
sitebuilderLuc Pattyn4-Jul-07 10:41 
GeneralRe: You did it again my friend! Pin
Christian Graus4-Jul-07 10:57
protectorChristian Graus4-Jul-07 10:57 
GeneralRe: You did it again my friend! Pin
Luc Pattyn4-Jul-07 11:46
sitebuilderLuc Pattyn4-Jul-07 11:46 
GeneralRe: You did it again my friend! Pin
Martin#4-Jul-07 19:47
Martin#4-Jul-07 19:47 
Questionhow to connect to sql Database in VC# 2005 Pin
Xmen Real 4-Jul-07 4:29
professional Xmen Real 4-Jul-07 4:29 
AnswerRe: how to connect to sql Database in VC# 2005 Pin
Ed.Poore4-Jul-07 6:08
Ed.Poore4-Jul-07 6:08 
QuestionDragDrop rectangle Pin
titusworld4-Jul-07 4:25
titusworld4-Jul-07 4:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.