POC0bob Posted November 19, 2014 Share Posted November 19, 2014 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 More sharing options...
Jacques1 Posted November 19, 2014 Share Posted November 19, 2014 Do it step by step. This problem obviously involves several tasks, the most basic one is to make an HTTP request with PHP. Can you do that? If not, read up on cURL. When that's done, read the chapter about cookies so that you can maintain the session cookie after the log-in. Link to comment Share on other sites More sharing options...
POC0bob Posted November 20, 2014 Author Share Posted November 20, 2014 I am not sure how to get it to work, though. Link to comment Share on other sites More sharing options...
Recommended Posts