This content has been marked as final. Show 3 replies
On further investigation I found then whenever there is a 414 - Request URI is too long error, Marketo does not return any headers in the response which makes it difficult to handle such responses by the client.
The workaround here is to use the POST method instead of GET. This should allow you to get around request limitations with GET because of the long URL.
If using the POST method, you will need to pass the parameter "_method=GET" with your request.
I tried using the POST method with "_method=GET". But the API does not recognize the fields parameter that I pass in the post body and only returns the default fields. Could you please give me an example code that I can refer for setting the fields parameter in the POST body.
Here is what I tried: