Thread: TwitterBot
View Single Post
  #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