Click here to Skip to main content
15,920,383 members
Home / Discussions / C#
   

C#

 
GeneralRe: JPG Size Pin
mhmoud rawas6-Dec-03 7:17
mhmoud rawas6-Dec-03 7:17 
GeneralFile Size over Internet Pin
eggie55-Dec-03 21:06
eggie55-Dec-03 21:06 
GeneralRe: File Size over Internet Pin
leppie5-Dec-03 21:51
leppie5-Dec-03 21:51 
GeneralRe: File Size over Internet Pin
Heath Stewart6-Dec-03 4:50
protectorHeath Stewart6-Dec-03 4:50 
GeneralRe: File Size over Internet Pin
eggie56-Dec-03 11:20
eggie56-Dec-03 11:20 
GeneralIdentifying the Web Server Pin
eggie55-Dec-03 15:07
eggie55-Dec-03 15:07 
GeneralRe: Identifying the Web Server Pin
eggie55-Dec-03 16:05
eggie55-Dec-03 16:05 
GeneralRe: Identifying the Web Server Pin
Heath Stewart6-Dec-03 4:49
protectorHeath Stewart6-Dec-03 4:49 
Just make a HttpWebRequest and get the HttpWebResponse. The HttpWebResponse.Server property returns a string that identifies the server. This corresponds to the HTTP Server: header.

Here's an example:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.codeproject.com");
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Console.WriteLine(response.Server);


 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Identifying the Web Server Pin
eggie56-Dec-03 5:54
eggie56-Dec-03 5:54 
GeneralRe: Identifying the Web Server Pin
Heath Stewart6-Dec-03 6:36
protectorHeath Stewart6-Dec-03 6:36 
GeneralRe: Identifying the Web Server Pin
eggie56-Dec-03 11:25
eggie56-Dec-03 11:25 
Generalmaking the computer restart after a setup program is finished Pin
blakeb_15-Dec-03 11:02
blakeb_15-Dec-03 11:02 
GeneralRe: making the computer restart after a setup program is finished Pin
Heath Stewart5-Dec-03 11:34
protectorHeath Stewart5-Dec-03 11:34 
GeneralRe: making the computer restart after a setup program is finished Pin
blakeb_15-Dec-03 11:38
blakeb_15-Dec-03 11:38 
GeneralRe: making the computer restart after a setup program is finished Pin
Heath Stewart6-Dec-03 4:19
protectorHeath Stewart6-Dec-03 4:19 
GeneralRe: making the computer restart after a setup program is finished Pin
AndrewCherry7-Dec-03 2:08
AndrewCherry7-Dec-03 2:08 
GeneralRe: making the computer restart after a setup program is finished Pin
Heath Stewart7-Dec-03 4:02
protectorHeath Stewart7-Dec-03 4:02 
GeneralRe: making the computer restart after a setup program is finished Pin
Terrence Benade7-Dec-03 2:31
Terrence Benade7-Dec-03 2:31 
GeneralMailmerge Pin
Anonymous5-Dec-03 6:56
Anonymous5-Dec-03 6:56 
GeneralRe: Mailmerge Pin
Roger Stewart5-Dec-03 10:08
professionalRoger Stewart5-Dec-03 10:08 
GeneralRe: Mailmerge Pin
Anonymous9-Dec-03 6:16
Anonymous9-Dec-03 6:16 
GeneralC# and Named pipes Pin
Spiros5-Dec-03 5:32
Spiros5-Dec-03 5:32 
GeneralRe: C# and Named pipes Pin
Heath Stewart5-Dec-03 7:08
protectorHeath Stewart5-Dec-03 7:08 
GeneralTrouble playing a sound Pin
Shizam5-Dec-03 4:33
Shizam5-Dec-03 4:33 
GeneralRe: Trouble playing a sound Pin
Heath Stewart5-Dec-03 4:44
protectorHeath Stewart5-Dec-03 4:44 

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.