POST application/x-www-form-urlencoded Body to REST API using Jitterbit

w3bguy

I know I've done this before, but I'm spacing on how to properly do it, now.

I'm trying to call the Paylocity token API. Doing it with cURL and Postman works just fine. But, I can't remember how to send the body properly in Jitterbit. This is the cURL info that I'm trying to send, but it does not get the payload data, and always returns the invalid grant type error.

The --data-urlencode piece is what I'm failing to remember.

curl --location --request POST 'https://api.paylocity.com/IdentityServer/connect/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Basic XXXXX=' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'scope=WebLinkAPI'
w3bguy

George Jeffcock pointed me in the right direction. The issue was the extra line breaks. This link notes that.

https://community.jitterbit.com/s/question/0D54X0000687kiZSAQ

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Spring - wrong encoding POST request with x-www-form-urlencoded

How to send post request with x-www-form-urlencoded body

How to force Angular2 to POST using x-www-form-urlencoded

Why does Axios send my POST request with Content-Type application/x-www-form-urlencoded when using a string as the request body?

RestSharp post request - Body with x-www-form-urlencoded values

Retrofit + POST method + www-form-urlencoded

Jersey client Post Request with x-www-form-urlencoded Fails

Send sensitive data using POST+application/x-www-form-urlencoded

How do I post data using okhttp library with content type x-www-form-urlencoded?

Trying to reach API using Content-Type application/x-www-form-urlencoded

How to POST with application/x-www-form-urlencoded header and URLSearchParams using isomorphic-fetch

How to post (x-www-form-urlencoded) Json Data using Retrofit?

How to post a x-www-form-urlencoded data properly using javascript?

How is Laravel decoding HTTP request body Content-Type: application/x-www-form-urlencoded when using api call

How do I get raw request body using servicestack with content-type set to application/x-www-form-urlencoded?

How to POST x-www-form-urlencoded in retrofit

PYTHON: requests.post() how to send request_body encoded as application/x-www-form-urlencoded

POST using cURL and x-www-form-urlencoded in PHP returning Access Denied

How to send post request with x-www-form-urlencoded body with loopj-async-http library

PowerShell - Slack API - Room History - Post method with x-www-form-urlencoded parameters

why can't Volley String request send Body parameters with POST method in x-www-form-urlencoded?

how to post body x-www-form-urlencoded using webclient?

How to do a post request using FORM-DATA or x-www-form-urlencoded with Android?

Server-side Blazor Post using HttpClient with x-www-form-urlencoded

Trying to make an API POST using application/x-www-form-urlencoded in a wpf desktop app

Making a MarkLogic xdmp:http-post() request with x-www-form-urlencoded request body

How to post an array of values using `UrlFetchApp.fetch` with `application/x-www-form-urlencoded`?

In Java Rest Assured framework is there any way to use x-www-form-urlencoded form params using POJO classes?

How to do a x-www-form-urlencoded POST login using cypress?