1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
<html>
<head>
<link rel="stylesheet" type="text/css" href="dox.css" />
<title>libapreq2-2.05-dev: libapreq2: FAQ</title>
</head>
<body>
<div id="page-header">
<p class="menu">
<a href="http://www.apache.org/">Apache Software Foundation</a> > <a href="http://httpd.apache.org">HTTP Server Project</a> >
<a href="http://httpd.apache.org/apreq/">Request Library Subproject</a></p>
<p class="apache">Apache HTTP Server Request Library</p>
<img alt="" src="feather.gif" /></div>
<!-- Generated by Doxygen 1.4.2 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
<div class="nav">
<b>groups.dox</b></div>
<h1><a class="anchor" name="apreq_faq">FAQ</a></h1>
<p><a name="__index__"></a></p>
<!-- INDEX BEGIN -->
<ul>
<li><a href="#issues_during_installation_">Issues during installation.</a></li>
<li><a href="#using_libapreq2_with_apache_2_and_mod_perl_2_">Using libapreq2 with Apache 2 and mod_perl 2.</a></li>
<ul>
<li><a href="#when_i_use_apache__request_in_my_output_filter__it_seems_to_lose_the_incoming_post_variables_">When I use Apache::Request in my output filter, it seems to lose the incoming POST variables.</a></li>
<li><a href="#when_i_try_to_upload_a_file__why_do_i_get_this_error__error__can_t_locate_____apache_request_upload_al_in__inc">When I try to upload a file, why do I get this error ``[error] Can't locate .../Apache/Request/upload.al in @INC''?</a></li>
</ul>
<li><a href="#using_libapreq2_outside_of_apache_">Using libapreq2 outside of Apache.</a></li>
</ul>
<!-- INDEX END -->
<hr />
<p>
</p>
<h1><a name="issues_during_installation_">Issues during installation.</a></h1>
<p>[...]</p>
<p>
</p>
<hr />
<h1><a name="using_libapreq2_with_apache_2_and_mod_perl_2_">Using libapreq2 with Apache 2 and mod_perl 2.</a></h1>
<p>
</p>
<h2><a name="when_i_use_apache__request_in_my_output_filter__it_seems_to_lose_the_incoming_post_variables_">When I use Apache::Request in my output filter, it seems to lose the incoming POST variables.</a></h2>
<p>The problem is likely that the mod_apreq filter has not been
added to the input filter chain in time to read the POST data.</p>
<p>There are two solutions to this problem:</p>
<pre>
1) Write a filter init handler for you filter that instantiates an Apache::Request object.</pre>
<pre>
<a href="http://perl.apache.org/docs/2.0/api/Apache/Filter.html#C_FilterInitHandler_">http://perl.apache.org/docs/2.0/api/Apache/Filter.html#C_FilterInitHandler_</a></pre>
<pre>
2) Use .htaccess or your server config to ensure the apreq input filter
is active for this request with "AddInputFilter APREQ" or somesuch.</pre>
<p>We recommend using (1), and falling back to (2) until you get (1) working.</p>
<p>
</p>
<h2><a name="when_i_try_to_upload_a_file__why_do_i_get_this_error__error__can_t_locate_____apache_request_upload_al_in__inc">When I try to upload a file, why do I get this error ``[error] Can't locate .../Apache/Request/upload.al in @INC''?</a></h2>
<p><em>Apache::Upload</em> is now a separate module in apreq2, so you need to
<code>use Apache::Upload</code> to load the <code>Apache::Request::upload</code> function.</p>
<p>
</p>
<hr />
<h1><a name="using_libapreq2_outside_of_apache_">Using libapreq2 outside of Apache.</a></h1>
<p>[...]</p>
<div id="footer">
<p class="apache">
Copyright © 2003-2005 <a href="http://www.apache.org">The Apache Software Foundation</a>.<br/>
See <a href="apreq_license.html">LICENSE</a>.</p>
<p class="menu">
<span style="color:#aaa">page generated by <a href="http://www.doxygen.org/"><code>doxygen</code></a>
version 1.4.2 on 4 May 2005</span>
</p>
</div>
</body>
</html>
|