Öncelikle merhabalar 2 gündür uğraşıyorum yapamadım ajax ile post etmek istiyorum arkadaşlar yapmak istediğim nedir diye sorarsanız instagram.com a girdigim zaman console açıp bir javascript kod yazıp masaüstünde 1.jpgyi profil resmi yapmasını istiyorum




Tamperdata ile bulduğum form bilgileri(Tarayıcı logları)


14:29:50.853[n/ams][total n/ams] Status: Cancelled[Cancelled]
POST https://www.instagram.com/accounts/web_change_profile_picture/ Load Flags[LOAD_BYPASS_CACHE  ] Content Size[unknown] Mime Type[unknown]
   Request Headers:
      Host[www.instagram.com]
      User-Agent[Mozilla/5.0 (Windows NT 6.1; rv:42.0) Gecko/20100101 Firefox/42.0]
      Accept[*/*]
      Accept-Language[en-US,en;q=0.5]
      Accept-Encoding[gzip, deflate]
      X-Instagram-AJAX[1]
      X-CSRFToken[b00dfc68333f3c7964cc5550c37b80bb]
      X-Requested-With[XMLHttpRequest]
      Referer[https://www.instagram.com/rrteo5sueptt/]
      Content-Length[10829]
      Content-Type[multipart/form-data; boundary=---------------------------30434693920675]
      Cookie[mid=Vmq_9AAEAAE-hxmUoIxzbuqDd00C; sessionid=IGSCdb803e4c9395cc448c9c6d5a9008705c6a1cb0647413236036f677c6c0016c2b%3AmtESeo5Bazlfv6e3ngUJcBS2uMvsjzDI%3A%7B%22_token_ver%22%3A2%2C%22_auth_user_id%22%3A2342436589%2C%22_token%22%3A%222342436589%3AyK0nmqu4VLyaSLBBzfbYkrcOjIjzkj7h%3A1555d09e5a3a9e8cfbbadc282be86430bf6ea841a58b5a435dfc5875b8eb630c%22%2C%22_auth_user_backend%22%3A%22accounts.backends.CaseInsensitiveModelBackend%22%2C%22last_refreshed%22%3A1450614346.626627%2C%22_platform%22%3A4%7D; csrftoken=b00dfc68333f3c7964cc5550c37b80bb; ds_user_id=2342436589; s_network=; ig_pr=1; ig_vw=1920]
   Post Data:
      POST_DATA[-----------------------------30434693920675
Content-Disposition: form-data; name="profile_pic"; filename="1.jpg"
Content-Type: image/jpeg

ÿØÿà


Kendim bir kod yazdım fakat olmadı hatalı kod

$.ajax({
type:"POST",
url:"https://www.instagram.com/accounts/web_change_profile_picture/",
data:"name=profile_pic&filename=1.jpg",
success:function(gelen){
window.location.reload();
}
});