RE: Request-URI Too Large

2002-04-02 Thread Stephen Bardsley
Matt: Try this... Client code = #!/usr/bin/perl -w use LWP; use strict; my $request = HTTP::Request->new(POST => 'http://24.58.176.170/demo/test-post.asp'); $request->content_type( 'application/x-www-form-urlencoded' ); $request->content( 'name=' . 'junk ' x 4096 );

Re: Request-URI Too Large

2002-04-02 Thread Joshua Chamas
Matt Orlofsky wrote: > > I'm attempting to use LWP::UserAgent and via a post, HTTP::Request->new(POST > => $url);, send a very large URI. This URI request exceeds the > LimitRequestLine of 8190 bytes. Which I understand to be the max the Apache > server will allow. I don't believe this limit c

Re: Using Perl/ASp to Write to textfile

2002-04-02 Thread dan61psu
Josh, thanks alot for that pointer. i added the exception part into the open command, and got an error output. It says that permission was denied for writing to that file, so I am assuming this means that i have to look into permissions and all with chmod and chown? Thanks alot for your h

Request-URI Too Large

2002-04-02 Thread Matt Orlofsky
I'm attempting to use LWP::UserAgent and via a post, HTTP::Request->new(POST => $url);, send a very large URI. This URI request exceeds the LimitRequestLine of 8190 bytes. Which I understand to be the max the Apache server will allow. I don't believe this limit can be increased and I think the

Re: Using Perl/ASp to Write to textfile

2002-04-02 Thread Joshua Chamas
dan61psu wrote: > ... > <% if(%{$Request->{Form}}) > { > my $filename="notes.txt" > > if(open(ADDFILE, ">> $filename")) > { > print (ADDFILE $Request->Form('name') ); > close(ADDFILE); > } > } > %> > Try something more like this: <% if

Using Perl/ASp to Write to textfile

2002-04-02 Thread dan61psu
Hi all, i am a newbie with all this ASP and perl stuff, as I am only a sophomore at Penn State working as an Intern. anyway, i am trying to create a simple Asp page that when fields are filled, and submit is clicked, the form info is posted to a flat text- file in the same directory as the asp

Re: Using Apache ASP

2002-04-02 Thread Joshua Chamas
Jonathan De Graeve wrote: > > How dus it come that Apache ASP is different from Microsofts ASP > implementation. > > The Apache ASP is more Perl with some word coding style like ASP. It isn't > like the Chillisoft ASP. > > But great job, keep on going. > Microsoft ASP, or Active Server Pages,

Re: Apache::ASP 2.31 ParseXMLSubs Trouble

2002-04-02 Thread Joshua Chamas
Marcus Zoller wrote: > > > and it was put there with the idea that XMLSubs could be used > > to fully render an XML document. In sample XML hello world type > > docs, this could work by just ripping the tag out. I am not > > saying it should stay but that is why it is there... > > So removing

Re: Apache::ASP 2.31 ParseXMLSubs Trouble

2002-04-02 Thread Marcus Zoller
Am Die, 2002-04-02 um 10.42 schrieb Joshua Chamas: > > Marcus Zoller wrote: > > > > The first line in ASP::ParseXMLSubs removes any ... > > I removed the line and now anything works fine. Maybe this should be > > removed at all in the next release.. I can't see any reason to cut that > > instru

Re: expat.dll version 2.30 needed

2002-04-02 Thread Joshua Chamas
> WRFan wrote: > > Hi, > > had problems with one of the example modules. XML::Parser::Expat was needed, but I >got only version 2.27 of expat.dll . The version on cpan has no > dll. only the pm files, they are version 2.30, but dom.pm, another module, which >requires XML::Parser, requires at l

Re: Apache::ASP 2.31 ParseXMLSubs Trouble

2002-04-02 Thread Joshua Chamas
[[ Anyone working with XML & XMLSubs might want to read this ]] Marcus Zoller wrote: > > Hi! Here is some change I made... > > The first line in ASP::ParseXMLSubs removes any > parser directive. This is a big problem when the encoding information > is required because the parser assumes it is

Re: Templating suggestions?

2002-04-02 Thread Joshua Chamas
eamondaly wrote: > > I agree. I've changed my code to work like this. > > Of course, now I've run into a new roadblock. Can $Response->Redirect > be called from within XMLSubs? I've no trouble with normal <% blocks > and accessing objects like $Session, $Response, and such, but > redirects seem

Re: ASP Modification Suggestion

2002-04-02 Thread Joshua Chamas
Brat Wizard wrote: > > Josh- > > I would like to propose a minor change to the 'asp' perl program that > comes with Apache::ASP (in builddir/cgi). When the program runs it > expects to find its configuration file in the same directory. This makes > it awkward to load the config.asp file. The cha