Re: URL encoding/decoding

2007-06-01 Thread Brian McQueen
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:

diagram of server phases

2006-12-13 Thread Brian McQueen
-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

detection of current log level

2006-12-13 Thread 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

Question about %b (response bytes)

2006-11-21 Thread Brian McQueen
downloaded the whole thing, but counting bytes via the request_rec doesn't seem reliable. Brian McQueen

Re: memory leaking on POST

2006-11-14 Thread 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

Re: memory leaking on POST

2006-11-12 Thread Brian McQueen
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" &

memory leaking on POST

2006-11-12 Thread Brian McQueen
should look for my problem? Brian McQueen

Re: dropping a connection abruptly

2006-10-25 Thread 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

dropping a connection abruptly

2006-10-23 Thread Brian McQueen
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.

pool_userdata functions used like apr_tables?

2006-10-11 Thread Brian McQueen
clear, but make it seem like they may merrely set some undocumented attributes of a pool. Brian McQueen

pre-fork hook

2006-10-11 Thread Brian McQueen
he shm init stuff to occur once, when the server starts, and before any children are forked. Brian McQueen

server config apr_table_t

2006-10-10 Thread 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

Re: [RELEASE CANDIDATE]: libapreq2 2.09-RC1

2006-09-08 Thread Brian McQueen
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

Re: the request_rec structure in c plugins

2006-09-08 Thread Brian McQueen
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