any webclient control experts?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jtmerch

    #1

    any webclient control experts?

    Hi, I'm doing the following to send data to a URI using
    the webclient control.

    Dim PostStream As System.IO.Strea m = WebClient1.Open Write
    (URIAddress, "POST")
    PostStream.Writ e(DataToByte, 0, DataToByte.Leng th) 'write
    the entire stream starting at 0

    Now what I need to do after this is listen using the same
    webclient and print out whatever comes back from the
    server. The server does return values but after I do a
    postStream.writ e I dont know how to listen. I can do a
    streamreader but when I open the URI using the
    streamreader I receive errors. Should I be opening a
    connection then sending then opening another to receive?
    Thanks anyone for any help in this.
Working...