Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-26-2009, 05:29 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
I'm wondering if you really need php? It's possible to make post-requests and similar with TSocket if it's enabled on the server.
Reply With Quote
  #2  
Old 03-26-2009, 06:38 PM
Riot-Starter Riot-Starter is offline
Registered User
Join Date: Aug 2001
Location: Central Florida, USA
Posts: 79
Riot-Starter is on a distinguished road
Send a message via AIM to Riot-Starter
Quote:
Originally Posted by Stefan View Post
I'm wondering if you really need php? It's possible to make post-requests and similar with TSocket if it's enabled on the server.
While most likely possible (I've never used TSocket or seen any examples of its usage), I think that seems overkill for doing something like a POST request, especially given that to do a GET request we don't have to request anything like sockets.

Perhaps it wouldn't be out of line to request a function similar to requesturl for post data? Maybe something like, requestpost(url, "a=1&b=2") which would handle performing the POST request for us and wouldn't require us to request sockets be enabled.

Would probably also be nice to get a url encoding function (percent/form encoding) so data is properly encoded when performing the request.
Reply With Quote
  #3  
Old 03-26-2009, 10:42 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Stefan View Post
I'm wondering if you really need php? It's possible to make post-requests and similar with TSocket if it's enabled on the server.
Yeah, I answered that when you mentioned it originally in another thread (when I was still writing this code).

The problem is that for it to be released on the Code Gallery, I wanted it to be as simple as possible, and code that would only work if you enabled sockets on their server didn't seem like a good solution.
__________________
Reply With Quote
  #4  
Old 08-06-2009, 04:39 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by cbk1994 View Post
Yeah, I answered that when you mentioned it originally in another thread (when I was still writing this code).

The problem is that for it to be released on the Code Gallery, I wanted it to be as simple as possible, and code that would only work if you enabled sockets on their server didn't seem like a good solution.
Now go tweak it, since afaik TSockets are enabled on all servers by default.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #5  
Old 08-06-2009, 05:15 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by xXziroXx View Post
afaik
No.
__________________
Reply With Quote
  #6  
Old 08-06-2009, 05:21 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by cbk1994 View Post
No.
I'm pretty sure of it.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #7  
Old 08-06-2009, 05:27 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by xXziroXx View Post
I'm pretty sure of it.
I'm fairly certain of the opposite; I put in a ticket a few days ago asking for it on Era and Era Dev, and Stefan responded with a need for the IP/server and port numbers that would need to be connected to.

EDIT:

Yep

Quote:
Originally Posted by RC
The script of NPC Temp_Chris has been updated by cbk1994
Script connection to techxonline.net:80 is not allowed, blocking.
__________________
Reply With Quote
Reply


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 +2. The time now is 09:50 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.