(B"Petre Agenbag" <[EMAIL PROTECTED]> wrote:
(B> I'm wondering if something like this will be possible.
(B> I am correct in thinking that POST and GET data are sent as plain text?
(BNot always. (POST -> SSL)
(B> And, that being plain text, they should probably be highly compactable
(B> by zip utils?
(BNot really sure how you can do this...
(B> The reason I'm thinking this route is that I have a couple of forms for
(B> some client websites that are particularly large, some of the POST data
(B> sent are more than 2 MB, but obviously it can vary depending on the
(B> amount of data entered by the user ( I cannot limit this, as these forms
(B> are assessment forms, and they need to contain all relevant info,
(B> regardless of size ).
(B> All fields are text fields.
(B2MB of TEXT? If my calculation is correct hat would be over 2 million
(Bcharacters! I'm sure you can limit the size depending on when and where they
(Benter "relevant info".
(B> So, what happens now is that for some users on slow connections, these
(B> forms can either take years or they simply time out every time.
(BI'm afraid so...
(B> Being a specific application with controlled number of users, I wouldn't
(B> think it bad practise to force the user to install a "zip" package on
(B> his pc; that's to say if it would be possible to write some client side
(B> script (JS?) that will receive the form data, zip it, then send the
(BI don't think this is possible.
(B> zipped packet via POST or GET as per usual to the server, where, upon
(B> receipt, the POST package is "unzipped" and the handled as per usual.
(B> Would something like this be possible or feasible at all? Are there
(B> other better ways to accomplish this?
(BI think it'd be better to divide your form(s) in different sections and POST
(Bdata in smaller units. Or, perhaps, you can just ask them to (1) create a
(Btext file (better if it's XML) then (2) zip it if it's big and then (3)
(Bupload them to the server.
(BThen, perhaps, you can write a script that would parse the file and do
(Bwhatever is needed. (Unzip it first if necessary.)
(BJust an idea...
(BPHP General Mailing List (http://www.php.net/)
(BTo unsubscribe, visit: http://www.php.net/unsub.php