Click here to Skip to main content
15,882,278 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: WebPost?? Pin
badgrs14-Feb-07 23:30
badgrs14-Feb-07 23:30 
GeneralRe: WebPost?? Pin
Marcus J. Smith15-Feb-07 6:03
professionalMarcus J. Smith15-Feb-07 6:03 
Questionhow to check if a remote file exists Pin
Chandman14-Feb-07 12:34
Chandman14-Feb-07 12:34 
AnswerRe: how to check if a remote file exists Pin
Guffa14-Feb-07 14:17
Guffa14-Feb-07 14:17 
GeneralRe: how to check if a remote file exists Pin
Chandman15-Feb-07 5:25
Chandman15-Feb-07 5:25 
AnswerRe: how to check if a remote file exists Pin
theJazzyBrain15-Feb-07 3:40
theJazzyBrain15-Feb-07 3:40 
GeneralRe: how to check if a remote file exists Pin
Chandman15-Feb-07 5:29
Chandman15-Feb-07 5:29 
AnswerRe: how to check if a remote file exists Pin
theJazzyBrain15-Feb-07 5:41
theJazzyBrain15-Feb-07 5:41 
Use the WebRequest object.
Here is an example, this example though uses POST to send some XML and gets the response as string.
play around with this and see what you get.

HttpWebRequest wrWebRequest = WebRequest.Create(theUrl) as HttpWebRequest;<br />
wrWebRequest.Method = "POST";<br />
wrWebRequest.ContentLength = theXml.Length;<br />
wrWebRequest.ContentType = "text/xml";<br />
<br />
StreamWriter swRequestWriter = new StreamWriter(wrWebRequest.GetRequestStream());<br />
swRequestWriter.Write(theXml);<br />
swRequestWriter.Close();<br />
<br />
HttpWebResponse hwrWebResponse = (HttpWebResponse)wrWebRequest.GetResponse();<br />
<br />
StreamReader srResponseReader = new StreamReader(hwrWebResponse.GetResponseStream());<br />
responseResult = srResponseReader.ReadToEnd();<br />
srResponseReader.Close();


Hope this helps.

Jason Kataropoulos
Excellence is not an act, but a habit!
Aristotle


QuestionHow to use (include) a ASP.NET Web user Control self-sufficient into a ASP page?? Pin
fserbin14-Feb-07 4:54
fserbin14-Feb-07 4:54 
AnswerRe: How to use (include) a ASP.NET Web user Control self-sufficient into a ASP page?? Pin
Paddy Boyd15-Feb-07 5:18
Paddy Boyd15-Feb-07 5:18 
GeneralRe: How to use (include) a ASP.NET Web user Control self-sufficient into a ASP page?? Pin
fserbin15-Feb-07 23:24
fserbin15-Feb-07 23:24 
Questionusing Arabic Characters with URL parameter Pin
ALAQUNAIBI14-Feb-07 2:36
ALAQUNAIBI14-Feb-07 2:36 
AnswerRe: using Arabic Characters with URL parameter Pin
Bradml14-Feb-07 18:59
Bradml14-Feb-07 18:59 
QuestionWSE Webservice Pin
Kanjinghat14-Feb-07 1:18
Kanjinghat14-Feb-07 1:18 
QuestionWebservice using WSE Pin
a.mulay13-Feb-07 20:20
a.mulay13-Feb-07 20:20 
QuestionWeb Method is chatty Pin
convivial.developer13-Feb-07 16:01
convivial.developer13-Feb-07 16:01 
QuestionJavascript confirm dialog and asp.net 2.0 using C# Pin
#realJSOP13-Feb-07 8:03
mve#realJSOP13-Feb-07 8:03 
AnswerRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
Christian Graus13-Feb-07 8:53
protectorChristian Graus13-Feb-07 8:53 
GeneralRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
#realJSOP13-Feb-07 9:01
mve#realJSOP13-Feb-07 9:01 
GeneralRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
WoutL13-Feb-07 9:23
WoutL13-Feb-07 9:23 
GeneralRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
Christian Graus13-Feb-07 10:42
protectorChristian Graus13-Feb-07 10:42 
JokeRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
Guffa13-Feb-07 11:19
Guffa13-Feb-07 11:19 
GeneralRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
Christian Graus13-Feb-07 12:40
protectorChristian Graus13-Feb-07 12:40 
AnswerRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
Bradml13-Feb-07 20:21
Bradml13-Feb-07 20:21 
AnswerRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
badgrs13-Feb-07 23:26
badgrs13-Feb-07 23:26 

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.