connectors icon indicating copy to clipboard operation
connectors copied to clipboard

Support POSTing application-x-www-form-urlencoded Content-Type

Open upgradingdave opened this issue 10 months ago • 1 comments

Description

Its currently not possible make a POST request and send data in the body with Content-Type of application/x-www-form-urlencoded.

The unqork api requires this and I think other folks can benefit from the ability as well.

The way I implemented this is that if there's a header set like this:

{
  "Content-Type": "application/x-www-form-urlencoded"
}

Then a body like this will be interpreted correctly:

{
  "grant_type":"password",
  "username":unqorkUsername,
  "password":unqorkPassword
}

Screen Shot 2024-04-02 at 5 57 55 PM

Related issues

camunda-8-rest-connector-for-body-other-than-json

upgradingdave avatar Apr 02 '24 21:04 upgradingdave