Skip to main content
Tejas_Deshmukh_
Level 2
Mar 20, 2019 11:55 AM UTC
Question

_method=GET in Rest APIs

As per http://developers.marketo.com/rest-api/error-codes/

We can convert a GET API to POST type by appending _method=GET in URL

Would this also be done to make API hits more secure ?, as POST request are more secure than GET
Also,

By using _method= GET in rest APIs , some times getting proper response.... while sometimes getting error array as.... [{message=name cannot be null., code=701}, {message=folder cannot be null., code=701}]

Do anybody came up with same case,
or
what would be probable reasons for it..?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

7 replies

SanfordWhiteman
User Group Leader
User Group Leader
Mar 20, 2019 4:10 PM UTC

It has nothing to do with security. It's about the request size. Large request payloads can't be managed in the URL.

Translate
Tejas_Deshmukh_
Level 2
Mar 21, 2019 2:20 AM UTC

Agreed
but By using _method= GET in rest APIs , some times getting proper response.... while sometimes getting error array as.... [{message=name cannot be null., code=701}, {message=folder cannot be null., code=701}].... not getting the reason...

Translate
SanfordWhiteman
User Group Leader
User Group Leader
Mar 21, 2019 2:29 AM UTC

Well, I'd have to see the payloads and that you're using proper encoding. Not sure if every single Marketo GET can be used with _GET.

Translate