http xml post

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

    http xml post

    Hi

    What would be the best way to post and receive http xml post using vb.net?

    Thanks,
    CindyH


  • Martin Honnen

    #2
    Re: http xml post

    CindyH wrote:
    What would be the best way to post and receive http xml post using vb.net?
    The most flexible is WebRequest/HttpWebRequest and
    WebResponse/HttpWebResponse but WebClient might suffice depending on
    what exactly you want to do.


    --

    Martin Honnen --- MVP XML

    Comment

    • CindyH

      #3
      Re: http xml post

      Hi Martin:

      You seem to be the only one that knows anything about this.

      I'm trying to use webrequest - webresponse.
      I have set up a simple test with one aspx form holding the post code and
      trying to get another aspx form to receive the post on local server right
      now.
      Can you explain to me the possible reasons why a 'GetResponse' - to send the
      data to a server might not be working for a simple text file with one line.

      test.text - contains: this is a test.

      Using streamwriter to wrap the text in string and send as stream.

      so it looks like this "this is test".

      Either the 'Getresponse' to send to server or the 'reader as streamreader =
      new streamreader(pa ge.request.inpu tstream)' is not working.

      From everything I have read and heard this should work.

      Thanks, CindyH



      "Martin Honnen" <mahotrash@yaho o.dewrote in message
      news:OvK7kxeqIH A.4376@TK2MSFTN GP06.phx.gbl...
      CindyH wrote:
      >
      >What would be the best way to post and receive http xml post using
      >vb.net?
      >
      The most flexible is WebRequest/HttpWebRequest and
      WebResponse/HttpWebResponse but WebClient might suffice depending on what
      exactly you want to do.
      >
      >
      --
      >
      Martin Honnen --- MVP XML
      http://JavaScript.FAQTs.com/

      Comment

      Working...