You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-dev@tcl.apache.org by Georgios Petasis <pe...@yahoo.gr.INVALID> on 2017/01/30 20:00:45 UTC

How to handle posted from data?

Hi all,

I want to get the data POSTed from a form under firefox. The data 
firefox is posting are:

|-----------------------------172781025729778|

|||Content-Disposition: form-data; name="files[]"; filename=""|

|||Content-Type: application/octet-stream|

|||||||-----------------------------172781025729778|

|||Content-Disposition: form-data; name="ajax" ||||1|

|||-----------------------------172781025729778|

|||Content-Disposition: form-data; name="paste" ||||Enter text here...|

|||-----------------------------172781025729778--|

|In rivet, I use ::rivet::upload names, which returns only "||files[]".|

|How can I handle this? Also, what will happen if the form sends the 
same name multiple times?|

|Regards,|

|George
|


Re: How to handle posted from data?

Posted by Georgios Petasis <pe...@iit.demokritos.gr>.
Ok, I have solved my problem. I used ::rivet::load_response.

Regards,
George

On 30/1/2017 22:00, Georgios Petasis wrote:
>
> Hi all,
>
> I want to get the data POSTed from a form under firefox. The data 
> firefox is posting are:
>
> |-----------------------------172781025729778|
>
> |||Content-Disposition: form-data; name="files[]"; filename=""|
>
> |||Content-Type: application/octet-stream|
>
> |||||||-----------------------------172781025729778|
>
> |||Content-Disposition: form-data; name="ajax" ||||1|
>
> |||-----------------------------172781025729778|
>
> |||Content-Disposition: form-data; name="paste" ||||Enter text here...|
>
> |||-----------------------------172781025729778--|
>
> |In rivet, I use ::rivet::upload names, which returns only "||files[]".|
>
> |How can I handle this? Also, what will happen if the form sends the 
> same name multiple times?|
>
> |Regards,|
>
> |George
> |
>


Re: How to handle posted from data?

Posted by Massimo Manghi <ma...@biol.unipr.it>.
good, long ago I wrote an example in order to illustrate how to use the 
::rivet::upload command 
(http://tcl.apache.org/rivet/manual2.3/examples.html#file_upload)

  -- Massimo

On 01/30/2017 10:02 PM, Georgios Petasis wrote:
> Ok, I have solved my problem. I used ::rivet::load_response.
>
> Regards,
> George
>

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org


Re: How to handle posted from data?

Posted by Georgios Petasis <pe...@yahoo.gr.INVALID>.
Ok, I have solved my problem. I used ::rivet::load_response.

Regards,
George

On 30/1/2017 22:00, Georgios Petasis wrote:
>
> Hi all,
>
> I want to get the data POSTed from a form under firefox. The data 
> firefox is posting are:
>
> |-----------------------------172781025729778|
>
> |||Content-Disposition: form-data; name="files[]"; filename=""|
>
> |||Content-Type: application/octet-stream|
>
> |||||||-----------------------------172781025729778|
>
> |||Content-Disposition: form-data; name="ajax" ||||1|
>
> |||-----------------------------172781025729778|
>
> |||Content-Disposition: form-data; name="paste" ||||Enter text here...|
>
> |||-----------------------------172781025729778--|
>
> |In rivet, I use ::rivet::upload names, which returns only "||files[]".|
>
> |How can I handle this? Also, what will happen if the form sends the 
> same name multiple times?|
>
> |Regards,|
>
> |George
> |
>