troubleshooting Question


Avatar of John Pumphrey, Crestron CTI, DMC-E
John Pumphrey, Crestron CTI, DMC-E asked on
Web Languages and StandardsHTMLXML
6 Comments1 Solution955 ViewsLast Modified:
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

I'll give max points for help on this.

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros