Click here to Skip to main content
15,845,212 members
Home / Discussions / C#
   

C#

 
AnswerRe: how can i disable CTRL+ALT+DEL,ALT+F4 and ALT+TAb keys Pin
AFSEKI7-May-07 4:42
AFSEKI7-May-07 4:42 
QuestionRegular Expresion Pin
Asif Mushtaq3-May-07 21:37
Asif Mushtaq3-May-07 21:37 
AnswerRe: Regular Expresion [modified] Pin
HerbCSO3-May-07 23:50
HerbCSO3-May-07 23:50 
GeneralRe: Regular Expresion Pin
HerbCSO4-May-07 0:33
HerbCSO4-May-07 0:33 
QuestionRe: Regular Expresion Pin
Asif Mushtaq4-May-07 1:12
Asif Mushtaq4-May-07 1:12 
AnswerRe: Regular Expresion Pin
HerbCSO4-May-07 1:46
HerbCSO4-May-07 1:46 
JokeRe: Regular Expresion Pin
Asif Mushtaq4-May-07 1:51
Asif Mushtaq4-May-07 1:51 
QuestionRequesting WebPage using TCPClient Pin
SakthiSurya3-May-07 20:27
SakthiSurya3-May-07 20:27 
Hi,

I used TCPClient for Http Request. and here is my code


TcpClient client = new TcpClient("www.google.co.in", 80);
NetworkStream stream = client.GetStream();
string str = "GET / HTTP/1.1 \r\n Host: www.google.co.in \r\n Accept: */*
\r\n Connection: keep-alive\r\n ;

byte[] send = Encoding.ASCII.GetBytes(str);
stream.Write(send, 0, send.Length);

byte[] bytes=new bytes[client.ReceiveBufferSize];
if (stream.DataAvailable)
{
int count = stream.Read(bytes, 0, client.ReceiveBufferSize);
}

String data = Encoding.ASCII.GetString(bytes);

After Sending my request, i am not getting the response.I think the problem
is with my request. How my request should be if i use TCPClient.


Thanks in advance

Sakthi.





AnswerRe: Requesting WebPage using TCPClient Pin
SakthiSurya3-May-07 22:48
SakthiSurya3-May-07 22:48 
AnswerRe: Requesting WebPage using TCPClient Pin
Herman<T>.Instance4-May-07 0:29
Herman<T>.Instance4-May-07 0:29 
GeneralRe: Requesting WebPage using TCPClient Pin
SakthiSurya4-May-07 3:18
SakthiSurya4-May-07 3:18 
GeneralRe: Requesting WebPage using TCPClient Pin
Herman<T>.Instance6-May-07 23:07
Herman<T>.Instance6-May-07 23:07 
QuestionRegistry Editor Pin
Paramhans Dubey3-May-07 20:17
professionalParamhans Dubey3-May-07 20:17 
AnswerRe: Registry Editor Pin
Shajeel3-May-07 21:29
Shajeel3-May-07 21:29 
QuestionIndexers in c# Pin
Raheem MA3-May-07 19:43
Raheem MA3-May-07 19:43 
AnswerRe: Indexers in c# Pin
Sandeep Akhare3-May-07 21:07
Sandeep Akhare3-May-07 21:07 
Questionregarding listbox C# Pin
giribabu2343-May-07 19:42
giribabu2343-May-07 19:42 
AnswerRe: regarding listbox C# Pin
Sandeep Akhare3-May-07 21:02
Sandeep Akhare3-May-07 21:02 
QuestionDisplay a web control Link button in a html tag Pin
minlynn3-May-07 17:52
minlynn3-May-07 17:52 
AnswerRe: Display a web control Link button in a html tag Pin
Sandeep Akhare3-May-07 21:11
Sandeep Akhare3-May-07 21:11 
GeneralRe: Display a web control Link button in a html tag Pin
minlynn6-May-07 19:27
minlynn6-May-07 19:27 
QuestionSorting a collection of classes [modified] Pin
hpjchobbes3-May-07 17:34
hpjchobbes3-May-07 17:34 
AnswerRe: Sorting a collection of classes Pin
Stefan Troschuetz3-May-07 22:07
Stefan Troschuetz3-May-07 22:07 
AnswerRe: Sorting a collection of classes Pin
Jon Hulatt3-May-07 22:11
Jon Hulatt3-May-07 22:11 
AnswerRe: Sorting a collection of classes Pin
AFSEKI7-May-07 5:01
AFSEKI7-May-07 5:01 

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.