Skip to content

Instantly share code, notes, and snippets.

@youaresofunny
Forked from anonymous/response request
Created March 29, 2017 02:00
Show Gist options
  • Save youaresofunny/6ef00e4146f31caac7bd0d20dccce941 to your computer and use it in GitHub Desktop.
Save youaresofunny/6ef00e4146f31caac7bd0d20dccce941 to your computer and use it in GitHub Desktop.
response request
$ cat response
HTTP/1.1 200 OK
Date: Tue, 28 Mar 2017 23:05:59 GMT
Pragma: no-cache
Content-Type: application/json
Expires: Sat, 01 Jan 2000 00:00:00 GMT
Cache-Control: private, no-cache, no-store, must-revalidate
Vary: Cookie, Accept-Language, Accept-Encoding
Content-Language: en
Set-Cookie: s_network=""; expires=Wed, 29-Mar-2017 00:05:59 GMT; Max-Age=3600; Path=/
Set-Cookie: ds_user_id=4594731360; expires=Mon, 26-Jun-2017 23:05:59 GMT; Max-Age=7776000; Path=/
Set-Cookie: csrftoken=wFp819WmLCMiNWEVKfeLS202LQvJyE65; expires=Tue, 27-Mar-2018 23:05:59 GMT; Max-Age=31449600; Path=/; Secure
Set-Cookie: rur=PRN; Path=/
Connection: close
Content-Length: 561
{"status": "ok", "comment": {"type": 0, "content_type": "comment", "text": "works", "created_at_utc": 1490771159, "pk": 17867598484075535, "status": "Active", "media_id": 1463894800754542930, "user": {"is_verified": false, "full_name": "theta.tnd", "profile_pic_url": "http://scontent.cdninstagram.com/t51.2885-19/s150x150/16583114_466162353774379_7523884654995177472_a.jpg", "pk": 4594731360, "username": "theta.tnd", "profile_pic_id": "1445894681527184249_4594731360", "has_anonymous_profile_picture": false, "is_private": false}, "created_at": 1490742359.0}}
$ cat request
POST /api/v1/media/1463894800754542930_4594731360/comment/ HTTP/1.1
X-IG-Connection-Type: WIFI
X-IG-Capabilities: 3QI=
Accept-Language: en-US
Host: i.instagram.com
Accept: */*
Connection: close
User-Agent: Instagram 10.8.0 Android (20/4.4.4; 424dpi; 1080x1920; Samsung; SM-T357W; gt58ltebmc; en_US)
cookie: rur=PRN; csrftoken=wFp819WmLCMiNWEVKfeLS202LQvJyE65; mid=WNrq2gABAAGLd4kXDSNi4aLn3QnB; ds_user_id=4594731360; sessionid=IGSCe7e8846b50c40dce44116e9bcebd4e448f3ad46ac0bbdd83beb35fa8d224a983%3AgU9MsPKDuUI3iVQLkk6rHuYKkBVSoJGx%3A%7B%22_platform%22%3A1%2C%22_auth_user_backend%22%3A%22accounts.backends.CaseInsensitiveModelBackend%22%2C%22_auth_user_id%22%3A4594731360%2C%22_token%22%3A%224594731360%3Aa3r6BZlWcDSgTiWA16UhiVyq0yu7DO3c%3A684521a3a03f99906bce1acfa94ff1bbddaf6fa56687552787f1e27beaf1972c%22%2C%22_auth_user_hash%22%3A%22%22%2C%22_token_ver%22%3A2%2C%22asns%22%3A%7B%22time%22%3A1490742181%2C%2285.26.165.62%22%3A31133%7D%2C%22last_refreshed%22%3A1490742181.1787953377%7D; ds_user=theta.tnd; igfl=theta.tnd; s_network=""; is_starred_enabled=yes
content-type: multipart/form-data; boundary=--------------------------181670845283587935765970
Content-Length: 622
----------------------------181670845283587935765970
Content-Disposition: form-data; name="signed_body"
25ccee103eb2d99925893bc71b82a71d472d580af3696797dce5b1c58fd53422.{"_csrftoken":"wFp819WmLCMiNWEVKfeLS202LQvJyE65","device_id":"android-25adeda6f43bf9ad","_uuid":"8b1257ce-714f-4763-9651-eb94c8f4a721","media_id":"1463894800754542930_4594731360","src":"profile","comment_text":"works","idempotence_token":"038703c7230ae012e3c783ace1d09d64"}
----------------------------181670845283587935765970
Content-Disposition: form-data; name="ig_sig_key_version"
4
----------------------------181670845283587935765970--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment