Raised This Month: $51 Target: $400
 12% 

[sockets] login to site


Post New Thread Closed Thread   
 
Thread Tools Display Modes
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 06-27-2010 , 16:10   Re: [sockets] login to site
#11

PHP Code:
POST /process.php HTTP/1.0
Host
cp.gaming-service.com
User
-AgentHTTPTool/1.0
Content
-Typeapplication/x-www-form-urlencoded
Content
-Length32

task
=login&return=&email=blah@foo.com&password=yourpassword 
You must change that 32 to the lenght of the last string (task=*)
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 06-27-2010 , 16:25   Re: [sockets] login to site
#12

Quote:
Originally Posted by joropito View Post
PHP Code:
POST /process.php HTTP/1.0
Host
cp.gaming-service.com
User
-AgentHTTPTool/1.0
Content
-Typeapplication/x-www-form-urlencoded
Content
-Length32

task
=login&return=&email=blah@foo.com&password=yourpassword 
You must change that 32 to the lenght of the last string (task=*)
I'm noobb That doesn't work I checked everything several times, I thing i haven't got errors. What is then wrong?
PHP Code:

            socket5 
socket_open("cp.gaming-service.com"80SOCKET_TCPerror)

            
formatex(requestcharsmax(request), "POST /process.php HTTP/1.0^n")
            
formatex(request2charsmax(request2), "%sHost: cp.gaming-service.com^n",request)
            
formatex(requestcharsmax(request), "%sContent-Type: application/x-www-form-urlencoded^n",request2)
            
formatex(request2charsmax(request2), "%sContent-Length: 58^n^n"request)
            
formatex(requestcharsmax(request), "%stask=login&return=&[email protected]&password=password^n^n"request2)
            
socket_send(socket5requestcharsmax(request))
            
server_print("%s",request)
            
            
//go to cp.gaming-service.com/servermanage.php?task=restart&serverid=24
            
formatex(requestcharsmax(request), "POST /servermanage.php HTTP/1.0^n")
            
formatex(request2charsmax(request2), "%sHost: cp.gaming-service.com^n",request)
            
formatex(requestcharsmax(request), "%sContent-Type: application/x-www-form-urlencoded^n",request2)
            
formatex(request2charsmax(request2), "%sContent-Length: 30^n^n"request)
            
formatex(requestcharsmax(request), "%stask=restart&serverid=24^n^n"request2)
            
server_print("%s",request)
            
            
socket_send(socket5requestcharsmax(request2)) 

Last edited by Empowers; 06-27-2010 at 17:06.
Empowers is offline
Send a message via ICQ to Empowers
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 06-27-2010 , 16:36   Re: [sockets] login to site
#13

I think what you're trying to do (with that site) is not possible because you have to manage cookies.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 06-27-2010 , 16:42   Re: [sockets] login to site
#14

Quote:
Originally Posted by joropito View Post
I think what you're trying to do (with that site) is not possible because you have to manage cookies.
here is the answer from server. Does that mean it needs cookies?
Code:
HTTP/1.1 302 Found
Date: Sun, 27 Jun 2010 20:39:10 GMT
Server: Apache/2.2.15 (Debian)
X-Powered-By: PHP/5.3.2-1
Set-Cookie: PHPSESSION=u8445k6d590vjd39tv4phhtr23; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must
Empowers is offline
Send a message via ICQ to Empowers
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-27-2010 , 17:05   Re: [sockets] login to site
#15

You sir, nonsteam
__________________
xPaw is offline
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 06-27-2010 , 17:08   Re: [sockets] login to site
#16

Quote:
Originally Posted by xPaw View Post
You sir, nonsteam
I was just testing it from 47\48 protocol server. Does that plays any role? On my steam server it doesn't work too. By the way message on steam server is the same, so how do you know I was testing it from nosteam?

Last edited by Empowers; 06-27-2010 at 17:23.
Empowers is offline
Send a message via ICQ to Empowers
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-27-2010 , 17:23   Re: [sockets] login to site
#17

Maybe it play role that you have all around your server dproto's, setmasters to non-steam ips etc ?
__________________
xPaw is offline
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 06-27-2010 , 17:45   Re: [sockets] login to site
#18

Quote:
Originally Posted by xPaw View Post
Maybe it play role that you have all around your server dproto's, setmasters to non-steam ips etc ?
I can't understand why setmasters added on server start can be the problem?
Anyway on steam it's the same.
Empowers is offline
Send a message via ICQ to Empowers
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 06-27-2010 , 20:43   Re: [sockets] login to site
#19

Quote:
Originally Posted by Empowers View Post
I can't understand why setmasters added on server start can be the problem?
Anyway on steam it's the same.
Doesn't matter.

You support non-steam and contribute to it. Take a hike
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 06-28-2010 , 07:19   Re: [sockets] login to site
#20

Quote:
Originally Posted by DruGzOG View Post
Doesn't matter.

You support non-steam and contribute to it. Take a hike
For me that doesn't matter are players steam or not. My server gets full in 10 minutes after staring with dproto. And on steam it's always almost empty. Thats the reason why I use 47/48 protocol.

Last edited by Empowers; 06-28-2010 at 07:24.
Empowers is offline
Send a message via ICQ to Empowers
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode