Re: use libapreq2 to read POST params
"Philip M. Gollucci" <[email protected]>
| Newsgroups | gmane.comp.apache.apreq |
|---|---|
| Organization | P6M7G8 Inc. |
| Message-ID | <[email protected]> |
Dave Viner wrote: > Hi, > I'm trying to use libapreq2 to read some parameters submitted via POST, > but I'm having trouble. Should I use $req->body($myparam) ? or > $req->param($myparam)? ...[snip].... cv=1234 [email protected] /home/pgollucci/dev/build 466 0>cat params | lwp-request -m POST -SUsue http://test.p6m7g8.net/post POST http://test.p6m7g8.net/post User-Agent: lwp-request/2.07 Content-Length: 10 Content-Type: application/x-www-form-urlencoded POST http://test.p6m7g8.net/post --> 200 OK Connection: close Date: Fri, 22 Sep 2006 19:17:13 GMT Server: Apache/2.2.0 (FreeBSD) mod_ruby/1.2.5 Ruby/1.8.4(2005-12-24) PHP/4.4.2 mod_apreq2-20051231/2.5.7 mod_perl/2.0.2 Perl/v5.8.8 Content-Type: text/plain Client-Date: Fri, 22 Sep 2006 19:17:09 GMT Client-Peer: 66.236.219.72:80 Client-Response-Num: 1 Client-Transfer-Encoding: chunked cv => 1234 Code and config available: http://test.p6m7g8.net/TEST See also: http://httpd.apache.org/apreq/docs/libapreq2/group__apreq__xs__apr__request.html#param HTH -- ------------------------------------------------------------------------ Philip M. Gollucci ([email protected]) 323.219.4708 Consultant / http://p6m7g8.net/Resume/resume.shtml Senior Software Engineer - TicketMaster - http://ticketmaster.com 1024D/A79997FA F357 0FDD 2301 6296 690F 6A47 D55A 7172 A799 97F "In all that I've done wrong I know I must have done something right to deserve a hug every morning and butterfly kisses at night." __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / / /|_/ / // /\ \/ /_/ / /__ /_/ /_/\_, /___/\___\_\___/ <___/