The Apache apreq libraries have that stuff:
include/apreq2/apreq_util.h:APREQ_DECLARE(apr_size_t) apreq_encode(char *dest...
include/apreq2/apreq_util.h:APREQ_DECLARE(apr_status_t)
apreq_decode(char *dest...
The apreq tools are pretty useful.
On 6/1/07, Frank Jones <[EMAIL PROTECTED]> wrote:
-date.
Maybe there is a way to get this by scanning through the headers or
through the source code? How would I determine the order?
Does anyone know if this information is available?
Nick, will it be in your book?
Brian McQueen
I don't see how I can detect the current log level from the API. Is
it in there somewhere? It would be nice to be able to do something
where I dump req->headers_in if its at APLOG_INFO. Otherwise I see
wasted cycles going through headers_in just to do no logging.
Brian McQueen
downloaded
the whole thing, but counting bytes via the request_rec doesn't seem
reliable.
Brian McQueen
orked many long hours to get that one line workaround I
just mentioned. I'll test out this patch. Thanks!
On 11/14/06, Joe Schaefer <[EMAIL PROTECTED]> wrote:
"Brian McQueen" <[EMAIL PROTECTED]> writes:
> What bucket type is SPOOL? I don't see it as a real
apreq_brigade_fwrite. The file handle is then
closed. On errors I do nothing with the upload brigade. Its pretty
simple. Does that sound right? Any tips about safe handling of
parameters or pointers to brigades?
On 11/12/06, Joe Schaefer <[EMAIL PROTECTED]> wrote:
"Brian McQueen" &
should look for my problem?
Brian McQueen
Thanks for the reply. Here is my conclusion: I have found that the
only client that can handle this kind of interruption is the command
line tool curl. Even ajax requests are unable to extract the reply.
I have verified with packet sniffing that the server's reply always
gets to the client, but
I need to be able to stop users from uploading a massive file
promptly/early. By the time the headers are read its already known
that the file will be too big, so I want to return at this point -
without delay. To wait until the body has been fully read can take
hours or days for massive files.
clear, but make it seem like they may merrely set some
undocumented attributes of a pool.
Brian McQueen
he shm init stuff to occur once, when the
server starts, and before any children are forked.
Brian McQueen
these lasts beyond the request, not even the one with
static char strings:
apr_table_set(server_config.approved_items, my_key, my_value);
apr_table_set(server_config.approved_items, "key2", "value2");
During the request I can loop over the table with apr_table_do and
pri
Works fine on FC4:
Linux xxx 2.6.16-1.2069_FC4smp #1 SMP Tue Mar 28 12:47:32 EST 2006
i686 i686 i386 GNU/Linux
On 9/7/06, Philip M. Gollucci <[EMAIL PROTECTED]> wrote:
Please download, test, and report back on the following
candidate tarball:
http://people.apache.org/~pgollucci/apreq2/libapre
ready for you
apreq_brigade_fwrite(saved_file_handle, &bytes, fname_parm->upload);
There are many useful function in there. Download it and check it
out. It will make your job much easier! apreq has its own mailing
list which is mentioned on the web site.
Brian McQueen
On 9/8/06, Siva
14 matches
Mail list logo