Jump to content

POST to another site, using variables...


POC0bob

Recommended Posts

I have sort of an odd request. I wish make a POST to roblox.com with the Xsrf token, let me give you what code might help then ill explain more.

 

So, I need to parse the page http://www.roblox.com/My/GroupAdmin.aspx?gid=1039951 to get

the token, which is between the (' ') below (this is taken from the site, as an example and the token changes each time the page refreshes/changes.

 <script type="text/javascript">Roblox.XsrfToken.setToken('IVzHt8XOUJpy');</script>

After you get the token, I need to make a post with that token to http://www.roblox.com/groups/api/change-member-rank with the variables:

groupId=

newRoleSetId= ,

targetUserId= ,

X-CSRF-TOKEN: IVzHt8XOUJpy,

X-Requested-With: XMLHttpRequest

 

I also might need to log in?

 

which I think is done like so:

POST https://m.roblox.com/Login HTTP/1.1
Host: m.roblox.com
Content-Length: 29
Content-Type: application/json

{"username":"","password":""}

but I am not sure, that is just something I found during my research. I know this is possible, I have seen it done multiple times in the past, and I think I have something going... Just not sure how to put it all together... 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.