[mp2] how to add data to posted form?
Hi, i have a question. i am coding a program. i must change / add some data to posted form from browser . I can use Apache::Request::Param for the job In mod_perl 1.3, but I did not find any interface to fix the problem. I hope some one can help me !!!
how to add data to posted form?
Hi, i have a question. i am coding a program. i must change / add some data to posted form from browser . I can use Apache::Request::Param for the job In mod_perl 1.3, but I did not find any interface to fix the problem. I hope some one can help me !!!
Re: [mp2] how to add data to posted form?
2007/10/7, Perrin Harkins <[EMAIL PROTECTED]>: > > On 10/6/07, newgaton new <[EMAIL PROTECTED]> wrote: > > i have a question. i am coding a program. i must change / add some > > data to posted form from browser . > > What are you trying to do? Using the parsed request data as a place > to store your own global data is a bad idea. If you just want to > store something in a convenient place, use $r->pnotes. If you want to > trick some legacy code that you can't change into receiving modified > parameters, use an input filter. If you're trying to trick some some > code that you can change, just change the code instead to get its > parameters from a method you provide. > > - Perrin > thanx very much to reply my question, I wanna find a interface to add some data to form (or maybe I will make a form in handler) which is posted from a browser. I am doing some job like the Module Apache::ParseFormData . now I don't know how to change or add the form data. for instance browser send some form data including some input element, now I wanna add some input element to it in server side, I know the data format is another style in server side. now I can't find the interface to add data to form.
Re: [mp2] how to add data to posted form?
my pleasure for receiving your reply! Maybe I didn't describe clearly the question . now I give a example to show my question. First, browser post a form(the method of form is POST) data, and it include some input element. . client fill some data to the element,for example "1234". Second, the Apache2 server receive the request,maybe the raw data is Line-based text data: application/x-www-form-urlencoded id=1234&[EMAIL PROTECTED]@#$W Third, the Apache2 will parse the raw data to some format, I don't know the what the format is, but it is not the key point. My question is how change the value "1234" of the key "id" to "4321". is there some class or interface? if there is, then I want to add some KEY, VALUE pairs to the request data, how to do? I hope I can change/add some form data in a Apache2 stage. hi Sean! if I didn't misunderstand your meaning, I can't change any request data in the Apache2 server, and only read some data from it . is it right ?
how to add bucket brigade to request via a input filter
hi guys ! i have a problem, I want to add some http header to the request data via the filter, but I find a http header data will be insert to a bucket brigade not to a bucket, so I can't add the http header, for example Content-Length. so if I want to add the Content-Length to the request data, I must add a bucket brigade. or someone knows some other way. thanx ahead.
how to add bucket brigade to request via a input filter
Hi guys! My connection-level input filter needs to replace a request with another request. This "another request" is contained, in encrypted form, in the BODY of the POST request I'm going to replace. I've been able to use ap_save_brigade, and move all the request's bucket brigades to a ctx bucket brigade, and use the last bucket-brigade of the request as starting point to insert the decrypted request. The problem is, Apache expects request headers in it's own bucket, and it's own bucket brigade. So, I can use that last bucket brigade to insert the first line of an HTTP request, but I can't add headers. So, I've thought I'd just use that bucket brigade to insert the first line of request (GET /blabla HTTP/1.1\r\n), and "then", append mode bucket brigades. But HOW to actually do this is eluding me. Any ideas?