Graal Forums  

Go Back   Graal Forums > Private forums > Graal4 Forums > Graal V4 Main Forum
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 09-02-2006, 01:55 AM
linkoraclehero linkoraclehero is offline
<title>Member</title>
Join Date: Dec 2004
Posts: 24
linkoraclehero is on a distinguished road
Send a message via AIM to linkoraclehero Send a message via MSN to linkoraclehero
requesturl(), forget it.

Turns out that everyone who even bothers using it, uses requesturl(), here's some advice, it only allows IPs, so don't. requesthttp() will work just as good .
for example, to access Google:
requesthttp("www.google.com",80,0);
I have reason to believe the 3rd argument is used to pass what the browser should immitate, such as IE, Firefox, so on. Not quite sure, but passing different arguments will cause different things .
__________________
<body>Signature</body>
  #2  
Old 09-02-2006, 02:14 AM
linkoraclehero linkoraclehero is offline
<title>Member</title>
Join Date: Dec 2004
Posts: 24
linkoraclehero is on a distinguished road
Send a message via AIM to linkoraclehero Send a message via MSN to linkoraclehero
The 3rd Argument

It's actually the sub folder.
__________________
<body>Signature</body>
  #3  
Old 09-02-2006, 02:27 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
I cannot get requesthttp to work. (I'm trying clientside if it matters.)

Requesturl reports the user agent as Graal/4.103.

Does requesthttp work in the same way as requesturl? I cant get it to work and i cant find any examples.
__________________

Coming soon (Hopefully:P)
  #4  
Old 09-02-2006, 10:56 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by linkoraclehero
Turns out that everyone who even bothers using it, uses requesturl(), here's some advice, it only allows IPs, so don't.
This is a known problem. In fact, this might only be a serverside issue.

Was this thread intended to be a bug report, or what?
  #5  
Old 09-02-2006, 02:39 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
http://wiki.graal.net/index.php/Crea...pt/Requesthttp
There was a problem on serverside which didn't allow host names, that is fixed now, although restarting the npcserver might also requiring to restart the gserver.
  #6  
Old 09-02-2006, 06:53 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
then the third arguement is not as linkoraclehero suggests and we may as well continue using requesturl.
__________________

Coming soon (Hopefully:P)
  #7  
Old 09-05-2006, 01:57 AM
linkoraclehero linkoraclehero is offline
<title>Member</title>
Join Date: Dec 2004
Posts: 24
linkoraclehero is on a distinguished road
Send a message via AIM to linkoraclehero Send a message via MSN to linkoraclehero
...

Okay, the first argument is the server (no HTTP, no sub folder).
The second is the port (For websites, you want 80).
The third is the sub folder. Kthnx.
__________________
<body>Signature</body>
  #8  
Old 09-05-2006, 12:10 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
I still don't understand the purpose of this 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 +2. The time now is 09:59 PM.


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