HTTP request error 500

2003-02-04 Thread Shahar Evron
hi everyone... I guess this problem is less related to perl (though it might be) and more related to HTTP... I'm trying to write a program that sends an HTTP request (using LWP::UserAgent::Request) to a server (web.icq.com, which i know is working fine), but all i get in status_line is "500 Can't c

an infinite loop

2003-02-05 Thread Shahar Evron
this peace of code seems to generate an infinite loop, and i have no clue why. this may very well be for a very silly reason, but i'm clueless... while (1) { if ($ntries >= 4) { print ERRLOG "Error : failed $ntries login attempts - giving up.\n"; return 2; } sleep (30*$ntries*$ntrie

HTTP error 500

2003-02-05 Thread Shahar Evron
hi everyone... I guess this problem is less related to perl (though it might be) and more related to HTTP... I'm trying to write a program that sends an HTTP request (using LWP::UserAgent::Request) to a server (web.icq.com, which i know is working fine), but all i get in status_line is "500 Can'

Re: HTTP error 500

2003-02-05 Thread Shahar Evron
well, i've been trying to grap a page from my own site, and it gives me the same error. also, i use $ua->agent("Mozilla/4.73 [en] (Win95; I)") to cover up for the useragent problem... could this be related to $ua->proxy ? (as i said, this is not my server... i don't know if i'm supposed to use a

Re: HTTP error 500

2003-02-05 Thread Shahar Evron
here's the relevant part from a test code i've been running to sort out this problem. it does pretty much the same as the original one, except for the facts that this one is simplified, and it uses GET instead of POST, but gives the same error.. -- my ($ua, $req, $res); $

Re: HTTP error 500

2003-02-05 Thread Shahar Evron
Thanks all, but i got it. I installed the script on a different server, and it works just fine. Is it possible that NetFirms who hosted me is blocking HTTP requests in some way? or mybe there's another problem? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

looking for a host

2003-02-05 Thread Shahar Evron
hi all.. i'm doing all sorts of tests with CGI related perl, and i need a good host that supports perl and SSI to run my scripts on. I'm working with one of those free web site hosting companies that put ads on my pages, and i have problems with stuff like viewing logs, installing moudules and s

Sending JavaScript variables to a perl program

2003-03-13 Thread Shahar Evron
hi... is there a good way to send JavaScript variables to a perl program WITHOUT using a form? (or mybe with a form, but i don't want the program to return anything, and i don't want a popup window to show up...) I know it sounds wierd, so i'll give an example... lets say i have a statistics gat

Detecting referrer

2003-03-16 Thread Shahar Evron
I'm working on a site statistics script, and the probably most important thing is to know the referring site... for now i've been using $ENV{'HTTP_REFERER'} or CGI->referer(), wich i guess work the same way and give the same result... Now this might be a lost case, but i'll ask it anyway: one of

automated file removal / cache clearing

2003-08-27 Thread Shahar Evron
hi... I'm working on a CGI program that creates some user-specific file on the server when accessed. is there a good way to make sure theese files are cleared when they're no longer needed - IE if a file in a specific directory was not accessed for 5 minutes, delete it. Right now i'm thinking a