XMLHTTP in .NET

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

    #1

    XMLHTTP in .NET

    Hi!
    I need use the classic XMLHTTP, but in .net. Now I'm using the COM
    component, but I like use a native class from the framework.
    This is the code, very simple, that I use. How I do that in .net? Thanks!!!

    Dim httpOb As MSXML2.XMLHTTP
    httpOb = New MSXML2.XMLHTTP
    httpOb.open("PO ST", "http://localhost/testweb.dll", False)
    httpOb.send(xml )

  • Martin Honnen

    #2
    Re: XMLHTTP in .NET



    Steve wrote:
    [color=blue]
    > I need use the classic XMLHTTP, but in .net. Now I'm using the COM
    > component, but I like use a native class from the framework.
    > This is the code, very simple, that I use. How I do that in .net? Thanks!!!
    >
    > Dim httpOb As MSXML2.XMLHTTP
    > httpOb = New MSXML2.XMLHTTP
    > httpOb.open("PO ST", "http://localhost/testweb.dll", False)
    > httpOb.send(xml )[/color]

    You can either try WebClient
    <http://msdn.microsoft. com/library/default.asp?url =/library/en-us/cpref/html/frlrfSystemNetW ebClientClassTo pic.asp>
    or you can use HttpWebRequest/HttpWebResponse .
    <http://msdn.microsoft. com/library/default.asp?url =/library/en-us/cpref/html/frlrfSystemNetH ttpWebRequestCl assTopic.asp>



    --

    Martin Honnen --- MVP XML
    http://JavaScript.FAQTs.com/

    Comment

    Working...