2 Replies Latest reply on Jun 22, 2015 5:50 AM by JamesHarding

    HTTP Post Raw XML

    JamesHarding

      Title

      HTTP Post Raw XML

      Post

      Hi guys,

      Is it possible to send an HTTP POST request with raw xml? It must not be encoded in any way or have any sort of headers, the current code I use in html form is this

      <html>
      <head>
      <title>Test vid.ly API</title>
      </head>
      <body>
      <h1>Test vid.ly API</h1>
      <h3>Query XML</h3>
      <form action="http://m.vid.ly/api/" method="POST">
          <div><input type="submit"></div>
          <div><textarea name="xml_text" style="width: 800px; height: 450px; margin-top: 10px;">
      <?xml version="1.0"?>
      <Query>
      <Action>GetMediaList</Action>
      <UserID>694</UserID>
      <UserKey>434dd012aaa9ccbf48fa681b792beacd</UserKey>
      <Count>1000</Count> <!-- optional -->
      </Query>
      </textarea></div>
          <div><input type="submit"></div
      <body>
      </html

      Cheers guys!

       

      James