javascript - Request being executed as an GET thought defined type="POST" -


i had been trying change relationship between 2 users using js(jquery). had been using jquery ajax achieve , issuing post request.

here code.

var url='https://api.instagram.com/v1/users/'+ userid +'/relationship?callback=?';  //forming ajax  $.ajax({    type:'post',    url:url,    data: {      access_token: edit_access_token,      action: 'follow'    },    datatype:'json',    success: function(res) {        if(res.data.)      }   }); 

issues:

instagram returns meta 200. , data incoming-status="none" & outgoing-status="none"

update: request being executed ajax instead of post .

expected answers:

please tell doing wrong?

update:

i found request being executed request retrieving relationship info. user! how make sure i'm executing post request ajax?

thanks.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -