RESTAPI updating baslines via JMeter

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

Sometimes the answer is right there, you just have to know how to interpret it. I’m using JMeter to do this update. Had to use the “HTTP Header Manager” before the PUT

2 Likes