Hello Experts!
I am working with a Crestron control system which uses a flavor of C++ in it's base code and trying to POST a command string to a REST based service running on an Apache web server.
I either get a error 501 not implemented or a malformed xml syntax error. The manufacturer of this recording system says I need to separate the url from the body of the xml delivery, they can't tell me how this needs to happen.....
What I am looking for is an example of a working POST to a REST in it's raw form. I have to code everything from scratch as there are no .h header files avalable or any classes to expose.
I have read the mind numbing RFC 2616 and have gotten some insight on structuring the http transaction but no examples for me to compare my delivery. I have very little http experience, my background is 18 yrs in control system programming so I am very weak with http transactions.
I'm just looking for a valid example of a http transaction sending a POST to REST protocol so I can compare what I am doing wrong with my delivery. If the example can be the raw data the http server receives, that would be best for me as I can structure my code to that exact format.
Here's my current senario;
I open port 80 (similar to a telnet session) and send the following as an ascii string, exactly as you see it, note the \n is a CR+LF.
POST /apis/recorders/recorder-0001807b232a-4909-0/recordings
<recording>
<sourceUrl>udp://192.168.1.74:4900</sourceUrl>
<maxDuration>2</maxDuration>
<metadata>
<title>John_test-1</title>
<description>This_is_a_test</description>
</metadata>
</recording>
\n\n
I'll give max points for help on this.