Doing a GET “https://server:52311/api/baseline/custom/{site}/{number}”, making my changes, then PUT the xml back to the same URL, I’m getting the error “HTTP encoding specification can only be UTF-8”. I’m able to POST the same xml to just /api/baselines/{site type}/{site name} and it creates a new baseline just fine. Thoughts?
The error sounds like
- Your PUT request has content-type header,
- The content-type header has charset parameter, and
- The charset value is something other than UTF-8