Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Graal V4 Main Forum (https://forums.graalonline.com/forums/forumdisplay.php?f=143)
-   -   requesturl(), forget it. (https://forums.graalonline.com/forums/showthread.php?t=68505)

linkoraclehero 09-02-2006 01:55 AM

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 :).

linkoraclehero 09-02-2006 02:14 AM

The 3rd Argument
 
It's actually the sub folder. :)

JkWhoSaysNi 09-02-2006 02:27 AM

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.

Skyld 09-02-2006 10:56 AM

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?

Admins 09-02-2006 02:39 PM

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.

JkWhoSaysNi 09-02-2006 06:53 PM

then the third arguement is not as linkoraclehero suggests and we may as well continue using requesturl.

linkoraclehero 09-05-2006 01:57 AM

...
 
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.

Skyld 09-05-2006 12:10 PM

I still don't understand the purpose of this thread.


All times are GMT +2. The time now is 08:57 AM.

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