httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip M. Gollucci" <>
Subject Re: Questions about apreq_params
Date Mon, 15 Dec 2008 22:28:47 GMT
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.

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

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


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 ( c: 703.336.9354
Consultant - P6M7G8 Inc.
Senior System Admin - RideCharge, Inc.
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.

View raw message