Re: Questions about apreq_params

"Philip M. Gollucci" <[email protected]> Mon, 15 Dec 2008 17:28:47 -0500
Newsgroups gmane.comp.apache.apreq
Organization P6 Web Applications Inc.
Message-ID <[email protected]>
Okay that documentation is both correct an incorrect.

Its a stop gab.  When you give no body and no args, you'll get a NULL, 
but in reality you should never need to do this.  I'll take suggestions 
on how to word that correctly.

--------------------------------------------------------------------------
-AaB03x
Content-Disposition: form-data; name="foo"

bar
--AaB03x
Content-Disposition: form-data; name="file"; filename="file.txt"
Content-Type: text/plain

foo
--AaB03x--
---------------------------------------------------------------------------

In the meantime, I'm not convinced you are using the API quite correctly.

Can you have a look at the code in module/t/c-modules/*
in particular,

	o mod_apreq_request_test.c - basic case
	o mod_apreq_upload_test.c - file uploads

At miniumm, you should be checking the RV code of apreq_args == 
APR_SUCCESS. I'm betting its not that for you and if you decode the 
number to a string you'll find your problem.







-- 
------------------------------------------------------------------------
Philip M. Gollucci ([email protected]) c: 703.336.9354
Consultant - P6M7G8 Inc.  http://p6m7g8.net
Senior System Admin - RideCharge, Inc.  http://ridecharge.com
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.