Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. Equivqlent of MSXML.XMLHTTPRequest

Equivqlent of MSXML.XMLHTTPRequest

Scheduled Pinned Locked Moved Managed C++/CLI
c++sysadminxmltutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    T RATHA KRISHNAN
    wrote on last edited by
    #1

    Hi! Is there an equivalent for MSXML.XMLHTTPRequest(VB) in C++/CLI? I've to send an XML Text to a server. How to do this using C++/CLI?

    N 1 Reply Last reply
    0
    • T T RATHA KRISHNAN

      Hi! Is there an equivalent for MSXML.XMLHTTPRequest(VB) in C++/CLI? I've to send an XML Text to a server. How to do this using C++/CLI?

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      You can use the WebRequest[^] class.

      Best wishes, Navaneeth

      T 1 Reply Last reply
      0
      • N N a v a n e e t h

        You can use the WebRequest[^] class.

        Best wishes, Navaneeth

        T Offline
        T Offline
        T RATHA KRISHNAN
        wrote on last edited by
        #3

        Hi! I used the following code. It only prints "OK". But I want to send an XML text to the server and also downlod from the server. This is the code: WebRequest^ request = WebRequest::Create( "https://live.play368.com/cgibin/EClientIntegration" ); request->Credentials = CredentialCache::DefaultCredentials; HttpWebResponse^ response = dynamic_cast<HttpWebResponse^>(request->GetResponse()); Console::WriteLine( response->StatusDescription ); System::String^ Dsc = response->StatusDescription; Stream^ dataStream = response->GetResponseStream(); StreamReader^ reader = gcnew StreamReader( dataStream ); String^ responseFromServer = reader->ReadToEnd(); Console::WriteLine( responseFromServer ); reader->Close(); dataStream->Close(); response->Close(); What else need to be done to send XML text to the server and download from server?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups