visit_url help.. again

bordemstirs

New member
I'm not sure what I'm doing wrong.
Code:
void executeCommand(string cmd){
 matcher m=create_matcher("whichchoice value=(\\d*)","");
print(cmd);
string url;
 if(cmd.to_int()>0){
 url="clan_dreadsylvania.php?action=forceloc&loc="+cmd.char_at(0);
  string p=visit_url(url,true,true);
print("first result: "+url);
...

If I do this in the CLI:
Code:
ash string cmd="911";  string url="clan_dreadsylvania.php?action=forceloc&loc="+cmd.char_at(0);   string p=visit_url(url,false,true);

It works just fine. But for some reason, from my relay script, it just loads nothing. Tried with every combination of true/false.
 

xKiv

Active member
1) is it a relay script? that might have effect on how visit_url behaves
2) the example in the script is visit_url(url,TRUE,true) which does a POST request; the example in CLI is visit_url(url,FALSE, true) which does a GET request. This can matter. The two can do completely different things, server-side.
 
Top