httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boysenberry Payne <boysenbe...@humaniteque.com>
Subject Re: How to use Apache2::Upload
Date Sat, 12 Nov 2005 01:11:05 GMT
What is $pool in:

APR::Request::Custom->handle($pool,
                                  $query_string,
                                  $cookie_header,
                                  $parser,
                                  $read_limit,
                                  $brigade)

and how do I get each of the values for this?

Should I use:

APR::Request->handle( ... );

or the above?

Right now I'm doing the following:

sub handle {

	$r = shift;

	# uploads	
	$req = Apache2::Request->new( $r );
	$upload = $req->upload( "upload_field_name" );

	# cookies
	$jar = Apache2::Cookie::Jar->new( $r );
	$cookies = $self->{jar}->cookies();
	$table = Apache2::Cookie->fetch( $r );
}

is there a better way, that I'm not getting?

Thank you,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Nov 11, 2005, at 5:48 PM, Philip M. Gollucci wrote:

> Boysenberry Payne wrote:
>> Also, are there equivalents to:
>> $CGI::DISABLE_UPLOADS
>> and
>> $CGI::POST_MAX
>> ???
> http://httpd.apache.org/apreq/docs/libapreq2/ 
> group__apreq__xs__apr__request.html
>
> Look for
> $req->disable_uploads()
>
> and
>
> $req->read_limit($set)
>
> Respectively.
>
> HTH
>
>
>
> -- 
> ----------------------------------------------------------------------- 
> ---
> "Love is not the one you can picture yourself marrying,
> but the one you can't picture the rest of your life without."
>
> "It takes a minute to have a crush on someone, an hour to like someone,
> and a day to love someone, but it takes a lifetime to forget  
> someone..."
>
> Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
> Consultant / http://p6m7g8.net/Resume/resume.shtml
> Senior Software Engineer - TicketMaster - http://ticketmaster.com
>
>

Mime
View raw message