|
| 02 Jan 2013 08:11 AM |
This is weird. Some group pages will allow me to send file_get_contents requests to groups pages while others will return this error: "Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?"
Any ideas? |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2013 08:25 AM |
| What's weird is that it's only happening on some groups; others work fine. |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2013 11:46 AM |
| How lovely, some groups are returning an object moved notice. |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2013 02:28 PM |
| You apparently don't have SSL configured on your server. I'm actually not sure if you CAN do a file_get_contents over HTTPS... |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2013 02:37 PM |
The file_get_contents() request for some groups, for some reason, results in a redirection to the login page, which is SSL. So that explains why I'm getting that error.
But why does the redirection happen for only some groups? |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2013 02:41 PM |
| They might be either 1)Removed 2)Require you to be a member. If it's the 2nd, just put it in a try-catch. |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2013 02:45 PM |
The group definitely exists, so I guess it's the latter.
But that's strange considering on the normal site you can still see a group's description even if you aren't a member. |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2013 03:17 PM |
| Whoa man. You are like a total script man. I bet nobody is as good as you. Man I can't even imagine your intelligence! |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2013 03:18 PM |
| Can't tell if sarcasm or... |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2013 03:22 PM |
| ^I'm not sure either, let's just ignore him, it might be contagious. |
|
|
| Report Abuse |
|
|
CLIPSE
|
  |
| Joined: 29 Jan 2010 |
| Total Posts: 9723 |
|
|
| 03 Jan 2013 04:07 PM |
| Maybe your next best bet would be fopen() ? |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2013 04:10 PM |
| ^Sadly not, I think I'll have to use cURL to log in before I try to visit the page. |
|
|
| Report Abuse |
|
|
CLIPSE
|
  |
| Joined: 29 Jan 2010 |
| Total Posts: 9723 |
|
|
| 03 Jan 2013 04:22 PM |
| Why would you want to be getting the contents of a group page on the mobile site? |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2013 04:25 PM |
| For my rank checker, I want to get the name, owner, picture and description of a group from its id. The mobile site is easier to parse than the desktop one. |
|
|
| Report Abuse |
|
|
k9rosie
|
  |
| Joined: 05 Jul 2008 |
| Total Posts: 14339 |
|
|
| 03 Jan 2013 04:35 PM |
| I would have recommended using curl in the first place. It's much faster also. |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2013 04:42 PM |
| But it requires more effort. :C |
|
|
| Report Abuse |
|
|
CLIPSE
|
  |
| Joined: 29 Jan 2010 |
| Total Posts: 9723 |
|
|
| 03 Jan 2013 04:50 PM |
@triston220
There's got to be some sort of ROBLOX API calls that you should be able to access after some looking around.. |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2013 04:50 PM |
| I've looked but to no avail Hopefully Sorcus will get one written for us. :3 |
|
|
| Report Abuse |
|
|
CLIPSE
|
  |
| Joined: 29 Jan 2010 |
| Total Posts: 9723 |
|
|
| 03 Jan 2013 04:53 PM |
@triston220
There's already one there. It's used by the various group functions within the player object. I'm guessing at elast. |
|
|
| Report Abuse |
|
|
CLIPSE
|
  |
| Joined: 29 Jan 2010 |
| Total Posts: 9723 |
|
| |
|
|
| 03 Jan 2013 04:56 PM |
You can use IsInGroup() and the GetGroupRank and GetGroupRole functions.
http://www.roblox.com/Game/Join.ashx |
|
|
| Report Abuse |
|
|
CLIPSE
|
  |
| Joined: 29 Jan 2010 |
| Total Posts: 9723 |
|
|
| 03 Jan 2013 05:12 PM |
@triston220
try file_get_contents("http://www.roblox.com/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=1&groupid=63")
|
|
|
| Report Abuse |
|
|
|
| 03 Jan 2013 05:15 PM |
| Yeah, that works, but I can't get any more group information. :C |
|
|
| Report Abuse |
|
|
CLIPSE
|
  |
| Joined: 29 Jan 2010 |
| Total Posts: 9723 |
|
|
| 03 Jan 2013 05:18 PM |
@triston220
In that request I just posted, you can set the "method" URL variable to IsInGroup, GetGroupRank, and GetGroupRole. |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2013 05:19 PM |
| IK, I'm already using those, but there's no way to get the name, owner logo or description of the group via an API, is there? |
|
|
| Report Abuse |
|
|