re:
!The Stream you're fetching is the *request* stream - i.e. a stream for
!the data which needs to get *sent* to the web server. That's not
!readable - you're meant to write into it (if you want to send up any data).
Exactly.
The link to the MSDN docs I just posted has correct sample code.
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
======================================
"Jon Skeet [C# MVP]" <sk***@pobox.comwrote in message
news:80**********************************@r66g2000 hsg.googlegroups.com...
On Jul 10, 3:53 pm, "K Viltersten" <t...@viltersten.comwrote:
Have you looked at the WebClient class in the System.Net namespace? It
will do exactly what you want. If you need more control over the request
you are making, you can use the HttpWebRequest/HttpWebResponse classes in
the same namespace.
I've been trying out some things with the
namespace you mentioned. Perhaps i'm not far
off the right code but this far, it's not
reading the stream as i want it to. This is the
code that i run.
The Stream you're fetching is the *request* stream - i.e. a stream for
the data which needs to get *sent* to the web server. That's not
readable - you're meant to write into it (if you want to send up any
data).
You want the *response* stream to read from.
Jon