_method=GET in Rest APIs | Community
Skip to main content
Tejas_Deshmukh_
Level 2
March 20, 2019
Question

_method=GET in Rest APIs

  • March 20, 2019
  • 1 reply
  • 4833 views

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.

1 reply

SanfordWhiteman
Level 10
March 20, 2019

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

Tejas_Deshmukh_
Level 2
March 21, 2019

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...

SanfordWhiteman
Level 10
March 21, 2019

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.