Prev: When to use one application domain instead of several
Next: Seach for a value in multi-dimensional array in 2005/2008
From: paul f on 17 May 2010 10:17 hi all, i would like to send the following text from GPRS device A wthin the quotes to below webserver, also would like to capture responce from server: initial message from device A sent to web server is "000001 Flow Level : 0000012" web server will respond with "#Success" when it sucessfully processes this message. URL is: www.abc.com/test.aspx?c=0
From: paul f on 17 May 2010 10:22 On May 17, 3:17 pm, paul f <foran.p...(a)gmail.com> wrote: > hi all, > i would like to send the following text from GPRS device A wthin the > quotes to below webserver, also would like to capture responce from > server: > > initial message from device A sent to web server is "000001 Flow > Level : 0000012" > web server will respond with "#Success" when it sucessfully processes > this message. > > URL is:www.abc.com/test.aspx?c=0 Just to clarify, I would like to write a c# app that tests the webserver, call it a device A simulator that will run on my desktop, I would like to send above text to webserver and read response..
From: Jeff Johnson on 17 May 2010 11:19 "paul f" <foran.paul(a)gmail.com> wrote in message news:b1543694-2bf9-4884-8390-26e59597e262(a)m21g2000vbr.googlegroups.com... > Just to clarify, I would like to write a c# app that tests the > webserver, call it a device A simulator that will run on my desktop, I > would like to send above text to webserver and read response.. Unless you need to do lots of programmatic processing of the result, why go to the trouble of writing a program? Just use Fiddler: http://www.fiddler2.com
From: Arne Vajhøj on 17 May 2010 19:00
On 17-05-2010 10:17, paul f wrote: > i would like to send the following text from GPRS device A wthin the > quotes to below webserver, also would like to capture responce from > server: > > initial message from device A sent to web server is "000001 Flow > Level : 0000012" > web server will respond with "#Success" when it sucessfully processes > this message. > > URL is: www.abc.com/test.aspx?c=0 The WebClient and (Http)WebRequest classes has good support for talking to a web server. Arne |