Re: An URL is not Invoking the Anticipated Perl Module [mp2]

2003-01-10 Thread Steve D
its error.log and the message Object not found (The requested URL was not found. Error number 404.) while attempting to call a perl module from a brower. [...] Location /CurrDate SetHandler per-script PerlResponseHandler MyApache::CurrDate /Location s/per-script/perl-script/ SetHandler can't

Re: An URL is not Invoking the Anticipated Perl Module [mp2]

2003-01-10 Thread Stas Bekman
Steve, please don't throw more than one question into the same email. It makes it really hard to followup. Please post each question separately. Steve D wrote: For the purpose of clarifying the issue, are you saying there is contention between the two handlers which are declared within the

An URL is not Invoking the Anticipated Perl Module

2003-01-09 Thread Steve D
The problem: Apache is generating “File does not exist” within its error.log and the message “Object not found” (The requested URL was not found. Error number 404.) while attempting to call a perl module from a brower. Since I am new with mod_perl, and somewhat with familiar perl, I must

Re: An URL is not Invoking the Anticipated Perl Module

2003-01-09 Thread Stas Bekman
Steve D wrote: The problem: Apache is generating “File does not exist” within its error.log and the message “Object not found” (The requested URL was not found. Error number 404.) while attempting to call a perl module from a brower. [...] Location /CurrDate SetHandler per-script

Re: url to png/jpeg

2002-10-03 Thread Mike P. Mikhailov
Hello Alastair Stuart, Sunday, September 29, 2002, 6:46:49 PM, you wrote: AS Hi, AS Somewhere read about converting urls to jpegs on the fly using modperl ?? AS Preferrably, to png AS TIA AS AS Alastair Stuart AS Perl Person Look at Apache::ImageMagic. It uses Image::Magic

default-handler ignored if url points to a directory

2002-10-02 Thread [EMAIL PROTECTED]
Hi on win32 perl 561 with last modperl when a location is reset to default-handler and no real file is called but just a directory, modperl does not pass on to default (and to mod_dir for indexing of the directory). url /stylesheets/style.css triggers the default handler properly

url to png/jpeg

2002-10-02 Thread Alastair Stuart
Hi, Somewhere read about converting urls to jpegs on the fly using modperl ?? Preferrably, to png TIA Alastair Stuart Perl Person

Is it possible to change the browser's address/location URL without Redirect?

2002-08-09 Thread Harry Zhu
to correct the data submitted. It might be accomplished by using one of the approaches outlined below, but I was wondering if there's other way that can save the overhead of the write/read or resend the data, and the re-process. Probably not much we can do if the URL displayed in the browser's address

RE: Is it possible to change the browser's address/location URL without Redirect?

2002-08-09 Thread French, Shawn
One option: If there's an erro in form 2, Save the user's form data in some session variables Then use a META HTTP-EQUIV=Refresh CONTENT=0; URL=/step2 tag to get the user's browser to redirect. Then populate the form with the data and error message you saved in his/her session object

Re: Is it possible to change the browser's address/location URL without Redirect?

2002-08-09 Thread Harry Zhu
the browser's address/location URL without Redirect? One option: If there's an erro in form 2, Save the user's form data in some session variables Then use a META HTTP-EQUIV=Refresh CONTENT=0; URL=/step2 tag to get the user's browser to redirect. Then populate the form with the data and error

Re: Is it possible to change the browser's address/location URL without Redirect?

2002-08-09 Thread Andrew Ho
Hello, HZI was wondering if that network trip can be avoided. The answer is no. You might be able to use JavaScript to do it on certain browsers, but I'm reasonably sure you can't do it on recent IE and Netscape browsers. Why do you want to do this? You could use base href/ or similar if your

Re: Is it possible to change the browser's address/location URL without Redirect?

2002-08-09 Thread Harry Zhu
in the step 1. Although it's not that important an issue. Did you mean javascript can change the URL text displayed in the (some version of) browser's address/location bar? I know it is used to display text in status. Noemally the use of Javascript to validate the data can almost eliminate the needing

Re: Is it possible to change the browser's address/location URL without Redirect?

2002-08-09 Thread Peter Bi
It is the browser that controls the URL in the Address bar. So one has to make another call to get the URL refreshed. If you are worry about the speed, you may 1) return an error code in case of error 2) in Apache's httpd.conf, config that specific error to display /step/1/error A simply

Re: Is it possible to change the browser's address/location URL without Redirect?

2002-08-09 Thread Harry Zhu
. Then the session mechanism maybe better for the speed since it sends less data. Harry - Original Message - From: Peter Bi [EMAIL PROTECTED] To: Harry Zhu [EMAIL PROTECTED]; Sent: Friday, August 09, 2002 5:18 PM Subject: Re: Is it possible to change the browser's address/location URL without

Re: URL

2002-06-14 Thread Mark Fowler
On Thu, 13 Jun 2002, Rasoul Hajikhani wrote: Is there a way to read the actual URL typed in the location box of the browser? What's actually typed into the location bar on a browser isn't sent in the HTTP headers, and thus mod_perl cannot access it. For example, you may be able to type

Installing mod_perl 1.26 - URI::URL error

2002-04-23 Thread Einar Roheim
/httpd.conf -X -d `pwd`/t httpd listening on port 8529 will write error_log to: t/logs/error_log letting apache warm up...\c done /usr/local/bin/perl t/TEST 0 Can't locate object method new via package URI::URL (perhaps you forgot to load URI::URL?) at ../blib/lib/Apache/test.pm line 252. make

RE: Installing mod_perl 1.26 - URI::URL error

2002-04-23 Thread Nicolai Schlenzig (DXD)
Hi Einar, I just did some digging in my mailbox and found the following: (btw - mod_perl 1.26 has been around for some time, and it looks like you're using it - but not in your spec. list) // Nicolai --- OLD MESSAGE --- Hi, For what it's worth it, I always have to add use URI::URL

Re: Installing mod_perl 1.26 - URI::URL error

2002-04-23 Thread Stas Bekman
Can't locate object method new via package URI::URL (perhaps you forgot to load URI::URL?) at ../blib/lib/Apache/test.pm line 252. make: *** [run_tests] Error 255 The strange thing is that I installed it on my test-server that has the same software (SuSE Linux 7.3 Pro / Apache 1.3.24

Re: Installing mod_perl 1.26 - URI::URL error

2002-04-23 Thread Einar Roheim
disappear. I did a force install on both of them (since I had the last version), but I still have the same problem. As Nicolai Schlenzig said, I can add use URI::URL; to these files: mod_perl-x.xx/t/internal/hooks.t mod_perl-x.xx/lib/Apache/test.pm mod_perl-x.xx/blib/Apache/test.pm But I still

Re: Installing mod_perl 1.26 - URI::URL error

2002-04-23 Thread Silvio Wanka
of LWP and URI packages, update both and the problem should disappear. I did a force install on both of them (since I had the last version), but I still have the same problem. As Nicolai Schlenzig said, I can add use URI::URL; to these files: mod_perl-x.xx/t/internal/hooks.t

Re: Installing mod_perl 1.26 - URI::URL error

2002-04-23 Thread Stas Bekman
Silvio Wanka wrote: BTW, have you tried the latest mod_perl CVS? I think your problem has been solved long time ago. Sometimes I forget that others don't use the cvs version all the time :) From Changes: =item 1.26_01-dev ... require URI::URL to work with newer libwww-perl ... Stas

Re: Installing mod_perl 1.26 - URI::URL error

2002-04-23 Thread Andrew McNaughton
On Tue, 23 Apr 2002, Silvio Wanka wrote: Stas Bekman wrote: Einar Roheim wrote: At 17:00 4/23/2002 +0800, you wrote: Einar Roheim wrote: Hi everyone, I have a problem installing mod_perl 1.26 with Apache 1.3.24. When I do the make test I'm getting this in the end

RE: http or https in URL?

2001-11-07 Thread Reif Peter
From: Stas Bekman *EXTERN* [mailto:[EMAIL PROTECTED]] Reif Peter wrote: In a mod_perl handler I want to construct the original URL of the request. I can construct it with r-get_server_name, r-get_server_port, r-uri and $r-parsed_uri-query. But how do I get the protocol, http

Apache::URI - URI::URL?

2001-11-07 Thread Louis LeBlanc
Hey all. I seem to be coming onto the modperl scene a little late, and it seems one of the classes mentioned in the Eagle book no longer exists. I am trying to get the full URI (http(s)://servername/uri) from the Apache::URI class. Of course the Eagle mentions that URI::URL

http or https in URL?

2001-11-06 Thread Reif Peter
In a mod_perl handler I want to construct the original URL of the request. I can construct it with r-get_server_name, r-get_server_port, r-uri and $r-parsed_uri-query. But how do I get the protocol, http or https. Is there a way to find out whether SSLEngine On is set? Yes, I can set

Re: http or https in URL?

2001-11-06 Thread Rob Nagler
But how do I get the protocol, http or https. You can check the port on $c-local_addr. 443 is https. Rob

Antwort: http or https in URL?

2001-11-06 Thread Michael . Jacob
Hi, we're using the following code: sub savelink ($modul: string min 4 max 4, $page: string default index.html) { my $r = Apache-request; my $session_id = $r-pnotes('sessionid'); my $uri = Apache::URI-parse($r); my $hostinfo = $uri-hostinfo; my $scheme = $uri-scheme; my $url

Re: http or https in URL?

2001-11-06 Thread David Young
PROTECTED] Organization: bivio Software Artisans, Inc. http://www.bivio.net Date: Tue, 6 Nov 2001 08:45:45 -0700 To: [EMAIL PROTECTED] Subject: Re: http or https in URL? But how do I get the protocol, http or https. You can check the port on $c-local_addr. 443 is https. Rob

RE: Antwort: http or https in URL?

2001-11-06 Thread Geoffrey Young
sub savelink ($modul: string min 4 max 4, $page: string default index.html) { my $r = Apache-request; my $session_id = $r-pnotes('sessionid'); my $uri = Apache::URI-parse($r); my $hostinfo = $uri-hostinfo; my $scheme = $uri-scheme; my $url = $scheme

Re: http or https in URL?

2001-11-06 Thread Issac Goldstand
- Original Message - From: Reif Peter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 06, 2001 17:37 Subject: http or https in URL? In a mod_perl handler I want to construct the original URL of the request. I can construct it with r-get_server_name, r-get_server_port, r-uri and $r

RE: http or https in URL?

2001-11-06 Thread Reif Peter
From: Richard L. Goerwitz III *EXTERN* [mailto:[EMAIL PROTECTED]] Reif Peter wrote: Yes, I can set it with PerlSetVar protocol https, but is there a simpler way? If you're in a response handler, you could test for the HTTPS environment variable. Otherwise you're stuck with a

Re: URI::URL - problem in LWP 5.53_95 with mod_perl

2001-08-27 Thread Mike808
earlier patch. My vote is for Cliff's patch to just 'use URI::URL;' in LWP::UserAgent.pm. If you don't feel like patching, remember to export PERL_HTTP_URI_CLASS=URI::URL instead. Mike808/ Stas Bekman wrote: What version of CPAN.pm are you using? CPAN.pm never picks distros

Re: URI::URL - problem in LWP 5.53_95 with mod_perl

2001-08-24 Thread mike808
I ran into the same problem. Found a simpler, cleaner solution. Just perform a export PERL_HTTP_URI_CLASS=URI::URL before building mod_perl, and you're home free. Long term, all mod_perl testing modules that assume URI::URL is loaded by LWP will now need to explicitly load URI::URL

Re: URI::URL - problem

2001-08-21 Thread ___cliff rayman___
i got this to work. my method is ugly. i noticed everywhere that URI::URL was being used in mod_perl and embperl, LWP::UserAgent was being used. also, i found this is the LWP (libwww-perl-5.5395) release notes: HTTP::Request, HTTP::Response will by default now use URI class, instead

nph- in url on NT gives error

2001-08-20 Thread Purcell, Scott
Hello, I was trying to do an exercise from TPJ Issue#5 (vol2.,no2) Rating Web Page Tastefulness with a Perl Agent, and it uses nph- in the URL. (Steins column). Anyway, I am running Apache 1.3.20 and just began coding a few lines. I noticed errors in the log file: couldn't spawn child process

[OT] Re: nph- in url on NT gives error

2001-08-20 Thread Robin Berjon
On Monday 20 August 2001 15:15, Purcell, Scott wrote: Anyway, I am running Apache 1.3.20 and just began coding a few lines. I noticed errors in the log file: couldn't spawn child process: /apache/cgi-bin/nph-rater.cgi The code (couldn't be any simpler) errors when named 'nph-rater.cgi', but

URI::URL - problem

2001-08-20 Thread allan
running make test i cannot come aroubf this annoying message: will write error_log to: t/logs/error_log letting apache warm up...\c done /usr/bin/perl t/TEST 0 Can't locate object method new via package URI::URL at ../blib/lib/Apache/test.pm line 252. make: *** [run_tests] Error 255 eh, what

Re: URI::URL - problem

2001-08-20 Thread ___cliff rayman___
weeks or so. ---snip-- --- ./t/internal/hooks.t.orig Wed Jan 20 15:16:38 1999 +++ ./t/internal/hooks.tMon Aug 20 20:52:03 2001 @@ -7,6 +7,7 @@ use ExtUtils::testlib; BEGIN { require net/config.pl; } require LWP::UserAgent; +use URI::URL; #first one queries httpd

Re: URI::URL - problem

2001-08-20 Thread ___cliff rayman___
this is not a good fix. i went to build embperl, and got the same URI::URL warnings when it attempted to test with mod_perl. embperl also expects to be able to call 'new URI::URL' without a previous use/require in the code. i did test to make sure my URI::URL was installed properly perl -MURI

Re: url mangling/rewriting

2001-08-13 Thread David Hajek
On Fri, Aug 10, 2001, Tatsuhiko Miyagawa wrote: On Fri, 10 Aug 2001 14:40:13 +0200 David Hajek [EMAIL PROTECTED] wrote: I see. You mean your session state is not stored on the database, but stored as encrypted text in session id itself. Yes, and the problem is whether there is some good

Re: url mangling/rewriting

2001-08-13 Thread Perrin Harkins
I see. You mean your session state is not stored on the database, but stored as encrypted text in session id itself. Yes, and the problem is whether there is some good algorithm, which will generate this kind of session ids. Security is not main part of this solution, but easy finding of

Re: getting URL of refused page, after OnDeny

2001-07-08 Thread wald
Can you set up a custom error document handler and redirect to that, rather than using your OnDeny? Return something like 409 (Conflict), and Apache will do an internal redirect, from which you can get the requesting URI in the same way that you can in other redirects. Actually,

getting URL of refused page, after OnDeny

2001-07-06 Thread wald
my setup: I have files in a directory, that a user can only get if subscribed. My apache is hacked with both C and mod_perl enhancements to authentication/authorization. My .htaccess looks as follows: AuthName library services AuthType

Re: getting URL of refused page, after OnDeny

2001-07-06 Thread darren chamberlain
[EMAIL PROTECTED] [EMAIL PROTECTED] said something to this effect on 07/06/2001: my setup: I have files in a directory, that a user can only get if subscribed. My apache is hacked with both C and mod_perl enhancements to authentication/authorization. My .htaccess looks

Re: Getting the wrong URL

2001-06-14 Thread Doug MacEachern
On 1 Jun 2001, [EMAIL PROTECTED] wrote: OK, I think I have solved this problem, but I would like to run my solution by you folks, and see if it makes any sense. What we found, on a more thorough code review, was that a number of the handlers were doing a redirect by calling send_cgi_header,

Re: Getting the wrong URL

2001-06-05 Thread Stas Bekman
On 1 Jun 2001, [EMAIL PROTECTED] wrote: OK, I think I have solved this problem, but I would like to run my solution by you folks, and see if it makes any sense. What we found, on a more thorough code review, was that a number of the handlers were doing a redirect by calling send_cgi_header,

Re: Getting the wrong URL

2001-06-04 Thread Chris Strom
[EMAIL PROTECTED] [EMAIL PROTECTED] writes: OK, I think I have solved this problem, but I would like to run my solution by you folks, and see if it makes any sense. What we found, on a more thorough code review, was that a number of the handlers were doing a redirect by calling

Re: Getting the wrong URL

2001-06-01 Thread [EMAIL PROTECTED]
OK, I think I have solved this problem, but I would like to run my solution by you folks, and see if it makes any sense. What we found, on a more thorough code review, was that a number of the handlers were doing a redirect by calling send_cgi_header, and then exit()'ing. It seemed to us that the

Re: modify url in web log via PerlLogHandler

2001-05-30 Thread Richard Chen
this is not the case any more and one can set a new value via this method. So modifying url in web log via PerlLogHandler is indeed possible. Just modify the_request value instead of the uri value. HTH for other people. Thanks Richard On Sat, May 26, 2001 at 09:23:17AM -0400, Richard Chen wrote

Re: Getting the wrong URL

2001-05-29 Thread [EMAIL PROTECTED]
to the disk (error_log seems to be the best) changing? What I'm trying to verify now is which URL Apache is even seeing in the request. However, it does not seem to be logging anything at all. Of course, I can't reproduce the problem right now. Bah. -- Have trouble remembering things? - http

modify url in web log via PerlLogHandler

2001-05-26 Thread Richard Chen
Is it possible to modify the logged url in the usual modperl weblog via PerlLogHandler? I have tried this and it does not seem to work: $ cat Apache/MyLog.pm package Apache::MyLog; use Apache::Constants qw(:common); sub handler { my $r = shift; my $uri=$r-uri; return

Re: Getting the wrong URL

2001-05-26 Thread Stas Bekman
On 25 May 2001, [EMAIL PROTECTED] wrote: On Fri, 25 May 2001 23:28:44 +0800 (SGT), Stas Bekman said: We're not doing anything with Apache::Registry. Everything is with Perl handlers. It always seemed to me that the problems described at those locations were specific to

Re: Getting the wrong URL

2001-05-25 Thread [EMAIL PROTECTED]
On 24 May 2001, [EMAIL PROTECTED] wrote: .. I have a web site where *everything* is mod_perl handlers. The problem that I'm seeing is that I will go to the url http://hostname/foo and I get the content from http://hostname/bar This seems to be happening when there is a server

Similiar to getting the wrong url!

2001-05-25 Thread Jean Louis Girard
On our site we have a page that does a search into a postgress database and then displays the results. When the site was running on redhat 6.2 it would occasionaly (1 out of 10) display false results. Since we have moved the site to a redhat 7.0 with the same perl and mod-perl as redhat 6.2 the

Re: Getting the wrong URL

2001-05-25 Thread Stas Bekman
On 25 May 2001, [EMAIL PROTECTED] wrote: On 24 May 2001, [EMAIL PROTECTED] wrote: .. I have a web site where *everything* is mod_perl handlers. The problem that I'm seeing is that I will go to the url http://hostname/foo and I get the content from http://hostname/bar

Re: Similiar to getting the wrong url!

2001-05-25 Thread Stas Bekman
On Fri, 25 May 2001, Jean Louis Girard wrote: On our site we have a page that does a search into a postgress database and then displays the results. When the site was running on redhat 6.2 it would occasionaly (1 out of 10) display false results. Since we have moved the site to a redhat 7.0

Re: Getting the wrong URL

2001-05-25 Thread [EMAIL PROTECTED]
On Fri, 25 May 2001 23:28:44 +0800 (SGT), Stas Bekman said: We're not doing anything with Apache::Registry. Everything is with Perl handlers. It always seemed to me that the problems described at those locations were specific to Apache::Registry. So you're saying that if a Perl handler

Getting the wrong URL

2001-05-24 Thread [EMAIL PROTECTED]
I'm having a recurring problem that I can't find comment about in the docs, and I was wondering if anyone might have some insight on this. I have a web site where *everything* is mod_perl handlers. The problem that I'm seeing is that I will go to the url http://hostname/foo and I get the content

Re: Getting the wrong URL

2001-05-24 Thread Stas Bekman
to the url http://hostname/foo and I get the content from http://hostname/bar This is naturally very distressing me me as the developer, and very confusing for the user. I suppose it's very likely a problem with my code, rather than with mod_perl, but if anyone has seen this before and can suggest

Antwort: Appending Session ID behind URL

2001-05-18 Thread Michael . Jacob
Hi, 2 ways: * before sending the output do a =~ s#(http://[^/]+/)([^\s]*)#$1/$sessionid$2#i * or the cleaner way: don't use absolute URLs for your links. (but use them for all images) cu Michael PS: I hope you put the session id before the path part of the URL? It's much easier to maintain

Appending Session ID behind URL

2001-05-17 Thread ktgoh
Hi all: I have a textbox in the HTML page which allows users to enter url. After the user click submit, i append the sessionid at the tail of the url. My qn is. how do i append all the links for that page with the sessionid. In my Apache module sub handler{ $r = shift; $query = $r-uri

How to change all the url of a particular website.. (append session id)

2001-05-16 Thread ktgoh
Hi . Hmm since i cannot get the cookie set by another URLDo you have any other suggestions for my problem. Current, i intend to pass the session id via the url. But the problem is let say first time i pass a url http://www.nus.edu.sg?sessionid=eeddffg i could get the sessionid from my mod

Re: the edge of chaos (URL correction)

2001-01-05 Thread Justin
My bad. it is www.dslreports.com/front/example.gif Sorry for those curious enough to check the URL out. On Thu, Jan 04, 2001 at 06:10:09PM -0500, Rick Myers wrote: On Jan 04, 2001 at 17:55:54 -0500, Justin twiddled the keys to say: If you want to see what happens to actual output when

Complete URL Forbidden bug

2000-10-20 Thread Stas Kisel
Hi. When trying to pass full URL in HTTP request, I get "Forbidden" reply from apache. I've checked this with my server (apache/1.3.9 mod_perl/1.24) and with one of servers from "Sites using mod_perl" section on mod_perl site: % telnet www.imdb.com 80 Trying 208.33

Re: Getting data from external URL

2000-08-29 Thread Gisle Aas
Steve Reppucci [EMAIL PROTECTED] writes: Just a word of warning: LWP::Simple doesn't follow redirects (at least, the last I checked, not sure if it's been changed in the 3 or 4 months since I've last used it...), If it does not follow redirects then that is a bug. Do you have a test case?

Re: Getting data from external URL

2000-08-29 Thread Steve Reppucci
Hmmm Looking at _trivial_http_get: if ($code =~ /^30[1237]/ $buf =~ /\012Location:\s*(\S+)/) { # redirect So it certainly seems like it's *trying to handle it. As I recall (it was a late night when I had an application that wasn't working), I had single stepped down into

Re: Getting data from external URL

2000-08-28 Thread Steve Reppucci
Just a word of warning: LWP::Simple doesn't follow redirects (at least, the last I checked, not sure if it's been changed in the 3 or 4 months since I've last used it...), so you need to be certain that you're using it in a context where you're fetching something that won't return a redirect.

Re: Getting data from external URL

2000-08-28 Thread Stas Bekman
On Mon, 28 Aug 2000, Steve Reppucci wrote: Just a word of warning: LWP::Simple doesn't follow redirects (at least, the last I checked, not sure if it's been changed in the 3 or 4 months since I've last used it...), so you need to be certain that you're using it in a context where you're

Re: Getting data from external URL

2000-08-28 Thread Jeff Beard
I just wrote a function yesterday that uses IO::Socket to interact with an outside CGI program. It appears to work the way I want but this is my first foray into writing TCP client code. It's basically this: sub tcp_client { my ( $rhost, $rport, $query_string ) = @_; my $socket =

Re: Getting data from external URL

2000-08-28 Thread Matt Sergeant
On Mon, 28 Aug 2000, Jeff Beard wrote: I just wrote a function yesterday that uses IO::Socket to interact with an outside CGI program. It appears to work the way I want but this is my first foray into writing TCP client code. It's basically this: sub tcp_client { my ( $rhost,

Re: Getting data from external URL

2000-08-26 Thread Rodney Broom
SB This one is much more efficient and requires even less coding: SB use LWP::Simple; SB $content = get("http://www.sn.no/") Even better, thanks Stas.

Re: Getting data from external URL

2000-08-26 Thread Vijay
"mod_perl Maillinglist" [EMAIL PROTECTED] Sent: Saturday, August 26, 2000 10:24 AM Subject: Re: Getting data from external URL SB This one is much more efficient and requires even less coding: SB use LWP::Simple; SB $content = get("http://www.sn.no/") Even better, thanks Stas.

RE: Getting data from external URL

2000-08-26 Thread Andrew Nicholson
riginal Message- From: Vijay [mailto:[EMAIL PROTECTED]] Sent: Friday, August 25, 2000 11:15 PM To: [EMAIL PROTECTED]; mod_perl Maillinglist Subject: Getting data from external URL Hello, I want to get data from an external url in my perl program (either thru Embperl Execute or

Re: Getting data from external URL

2000-08-26 Thread Rodney Broom
OK, lots of banter... Hey V, if you are on a *NIX system, then this is a fast way: open U, "lynx -source www.some.url.dom |"; $data = join '', U; There, you're finished. Admittedly, this isn't terribly efficiant, but it works just fine and has short devel time. Rodney Broom

Re: Getting data from external URL

2000-08-26 Thread Stas Bekman
On Sat, 26 Aug 2000, Rodney Broom wrote: OK, lots of banter... Hey V, if you are on a *NIX system, then this is a fast way: open U, "lynx -source www.some.url.dom |"; $data = join '', U; There, you're finished. Admittedly, this isn't terribly efficiant, but it works just fine and has

Re: Getting data from external URL

2000-08-26 Thread Gerald Richter
Hello, I want to get data from an external url in my perl program (either thru Embperl Execute or directly from perl). What I need is like this. There is a URL which gives some information in text format. I want to get that into a variable or file using perl and using my own html templates

Re: Getting data from external URL

2000-08-25 Thread Yann Ramin
trivial. Yann Vijay wrote: Hello, I want to get data from an external url in my perl program (either thru Embperl Execute or directly from perl). What I need is like this. There is a URL which gives some information in text format. I want to get that into a variable or file using perl

Re: Getting data from external URL

2000-08-25 Thread Rob Tanner
. Yann Vijay wrote: Hello, I want to get data from an external url in my perl program (either thru Embperl Execute or directly from perl). What I need is like this. There is a URL which gives some information in text format. I want to get that into a variable or file using perl and using my

Getting data from external URL

2000-08-25 Thread Vijay
Hello, I want to get data from an external url in my perl program (either thru Embperl Execute or directly from perl). What I need is like this. There is a URL which gives some information in text format. I want to get that into a variable or file using perl and using my own html templates, I

Naked in URL (was Re: Templating System)

2000-08-03 Thread Devin Ben-Hur
"Keith G. Murphy" wrote: Are there any browsers that do not actually handle the naked '' correctly? I confess that I also missed this, though I do understand the reason: the first one's invalid HTML. It just seems to always work. Think about this: A

[OT] Apache::Benchmark URL

2000-06-21 Thread Stas Bekman
In the last two post I gave the wrong URL for the module. Sorry for that. So here is the right one. http://stason.org/works/modules/Apache-Benchmark-0.01.tar.gz I still cannot decide whether to call it HTTPD::Benchmark or Apache::Benchmark, therefore it's not on CPAN yet

Location makes redirect and confuses CGI::url

2000-06-05 Thread Honza Pazdziora
Hello, this (longer) post deals with DirectoryIndex expansion, Apache::PerlRun (Registry gives the same) and CGI's url('-relative' = 1) method. The versions are 1.24, 2.68, 1.3.11 and 5.6.0+patches upto the end of May. In the end, there is a proposed patch for CGI.pm, but as I'm not sure

URL rewriting logging

2000-05-26 Thread Robert
Hi, I'm trying to use Eagle book-like URL rewriting to track sessions and I'd like to log session id in the 'user' field (so Analog can do all kind of usefull stats about sessions). I hoped I could just set 'user' throught Apache::Connection's user method, but it seems to be read-only

Re: URL rewriting logging

2000-05-26 Thread Thomas von Elling Skifter Eibner
On Fri, May 26, 2000 at 09:55:12AM +0200, Robert wrote: I'm trying to use Eagle book-like URL rewriting to track sessions and I'd like to log session id in the 'user' field (so Analog can do all kind of usefull stats about sessions). I hoped I could just set 'user' throught Apache

Re: URL rewriting logging

2000-05-26 Thread Matt Sergeant
On Fri, 26 May 2000, Robert wrote: Hi, I'm trying to use Eagle book-like URL rewriting to track sessions and I'd like to log session id in the 'user' field (so Analog can do all kind of usefull stats about sessions). I hoped I could just set 'user' throught Apache::Connection's user

Re: URL rewriting logging

2000-05-26 Thread Tom Mornini
On Fri, 26 May 2000, Robert wrote: Hi, I'm trying to use Eagle book-like URL rewriting to track sessions and I'd like to log session id in the 'user' field (so Analog can do all kind of usefull stats about sessions). I hoped I could just set 'user' throught Apache::Connection's user

Remote URL

2000-04-14 Thread Paul McCumber
I want to build a web page dynamically with content from several other web sites. I need to be able to fetch the remote URL's content into variables. How do I do that? For starters, I just have a module that just goes and gets a URL and writes that URL back to the browser. Can't even get

RE: Remote URL

2000-04-14 Thread Jason Bodnar
to be able to fetch the remote URL's content into variables. How do I do that? For starters, I just have a module that just goes and gets a URL and writes that URL back to the browser. Can't even get that to work. I think the hardest thing for me is that there is just no way to debug

Re: Remote URL

2000-04-14 Thread Ken Y. Clark
On Fri, 14 Apr 2000, Paul McCumber wrote: I want to build a web page dynamically with content from several other web sites. I need to be able to fetch the remote URL's content into variables. How do I do that? For starters, I just have a module that just goes and gets a URL and writes

Re: Remote URL

2000-04-14 Thread Jason Simms
I want to build a web page dynamically with content from several other web sites. I need to be able to fetch the remote URL's content into variables. How do I do that? This really is not that difficult, and yes, lots of people certainly have done it. You have many options open to you, but

self url

2000-01-26 Thread Vladimir Ivaschenko
Hello, Is there a way to get the URL of the current document in Embperl? Sort of like $q-self_url in CGI.pm. Vladimir

Re: self url

2000-01-26 Thread Ilya Obshadko
Hello Vladimir, ñðåäà, 26 ÿíâàðÿ 2000 ã., you wrote: VI Is there a way to get the URL of the current document in Embperl? Sort of like $q-self_url in CGI.pm. Hmmm. Maybe [- $req_rec-uri -] could help? ($req_rec represents apache request_rec object in Embperl). Best regards, Ilya

RE: self url

2000-01-26 Thread Gerald Richter
VI Is there a way to get the URL of the current document in Embperl? Sort of like $q-self_url in CGI.pm. Hmmm. Maybe [- $req_rec-uri -] could help? ($req_rec represents apache request_rec object in Embperl). Or $ENV{SCRIPT_NAME} or $ENV{REQUEST_URI} depending on what you need may also

Re: self url

2000-01-26 Thread Doug MacEachern
On Wed, 26 Jan 2000, Vladimir Ivaschenko wrote: Hello, Is there a way to get the URL of the current document in Embperl? Sort of like $q-self_url in CGI.pm. from chapter 9 of wrapmod: If the URI argument is omitted, the Iparse() method will construct a fully qualified URI from B$r

RE: URL Redirection

2000-01-09 Thread Gerald Richter
and PATH_TRANSLATED What I want to achieve is to have the some session info (basically I want to create my own session persistant data for various statistical purposes) to be part of the URL. (I mean the browser address to show something like http://my.domain.com/myplscript.pl?session

Re: URL Redirection

2000-01-09 Thread Vijay
-on these parameters to the web pages (Embperl encoded) using the HTML::Embperl::Execute command. At present, all these are done thru three scripts. Although the browser address is not showing thefull URL, it shows correct results. I am trying more to refine this and createone generic Perl script

URL Redirection

2000-01-08 Thread Vijay
own session persistant data for various statistical purposes) to be part of the URL. (I mean the browser address to show something like http://my.domain.com/myplscript.pl?session=1id=21). I am using a generic perl script to manage all pages and using embperl to link each together. My problem

RE: how to correctly use path_info part of URL with Empberl?

1999-12-25 Thread Gerald Richter
-Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Sent: Saturday, December 25, 1999 10:54 AMTo: Gerald RichterCc: [EMAIL PROTECTED]Subject: how to correctly use path_info part of URL with Empberl?Hi, How to use 'path_info' with Embperl? I tried