Lucee CFHTTP post encoding?

Hi,

I am having an issue where Lucee base64 encodes the body of cfhttp posts as
soon as they contains non ascii characters.

Everything works as expected when the post body contains only ASCII
characters:

As soon as the body contains non ascii characters (I added a é in there),
it looks like Lucee base64 encodes the body:

I am running Lucee5 on Debian and can reproduce this issue on a number of
services we post to.

Is there a way to instruct Lucee to not encode the body of the posts?

Thanks,
Jean

I got the URLs mixed up, sorry.

Works:

Does not work:

Using the cfhttp charset attribute (with a value of utf-8) leads to the
same results.

Thanks,
JeanOn Tue, Jul 26, 2016 at 12:24 AM, Jean Moniatte <@Jean_Moniatte> wrote:

Hi,

I am having an issue where Lucee base64 encodes the body of cfhttp posts
as soon as they contains non ascii characters.

Everything works as expected when the post body contains only ASCII
characters:
http://trycf.com/gist/d364d0ff3fd0497c6a5bab5021f7d8cc/lucee5?theme=monokai

As soon as the body contains non ascii characters (I added a é in there),
it looks like Lucee base64 encodes the body:
http://trycf.com/gist/d364d0ff3fd0497c6a5bab5021f7d8cc/lucee5?theme=monokai

I am running Lucee5 on Debian and can reproduce this issue on a number of
services we post to.

Is there a way to instruct Lucee to not encode the body of the posts?

Thanks,
Jean

I am not sure if my issue was related:
https://luceeserver.atlassian.net/browse/LDEV-931

Was fixed in release 5.0.1.29, see
http://preview.lucee.org/download/?type=snapshots

-HarryVon: lucee@googlegroups.com [mailto:lucee@googlegroups.com] Im Auftrag von Jean Moniatte
Gesendet: Dienstag, 26. Juli 2016 09:32
An: lucee@googlegroups.com
Betreff: [Lucee] Re: Lucee CFHTTP post encoding ?

I got the URLs mixed up, sorry.

Works:
http://trycf.com/gist/116af5be108544c093b1fd3b961c804b/lucee5?theme=monokai

Does not work:
http://trycf.com/gist/d364d0ff3fd0497c6a5bab5021f7d8cc/lucee5?theme=monokai

Using the cfhttp charset attribute (with a value of utf-8) leads to the same results.

Thanks,
Jean

On Tue, Jul 26, 2016 at 12:24 AM, Jean Moniatte <@Jean_Moniattemailto:Jean_Moniatte> wrote:
Hi,

I am having an issue where Lucee base64 encodes the body of cfhttp posts as soon as they contains non ascii characters.

Everything works as expected when the post body contains only ASCII characters:
http://trycf.com/gist/d364d0ff3fd0497c6a5bab5021f7d8cc/lucee5?theme=monokai

As soon as the body contains non ascii characters (I added a é in there), it looks like Lucee base64 encodes the body:
http://trycf.com/gist/d364d0ff3fd0497c6a5bab5021f7d8cc/lucee5?theme=monokai

I am running Lucee5 on Debian and can reproduce this issue on a number of services we post to.

Is there a way to instruct Lucee to not encode the body of the posts?

Thanks,
Jean


Get 10% off of the regular price for this years CFCamp in Munich, Germany (Oct. 20th & 21st) with the Lucee discount code Lucee@cfcamp. 189€ instead of 210€. Visit https://ti.to/cfcamp/cfcamp-2016/discount/Lucee@cfcamp

You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.commailto:lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.commailto:lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/CAG-7QUt-KW7LQEZKssEbyTWszpufu-_294WbWeiBZRcemAha%3Dw%40mail.gmail.comhttps://groups.google.com/d/msgid/lucee/CAG-7QUt-KW7LQEZKssEbyTWszpufu-_294WbWeiBZRcemAha%3Dw%40mail.gmail.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.

Thanks very much Harry for your input, adding the mimetype attribute to the
cfhttpparam tag fixed my issue and save me a bunch of time !

JeanOn Tue, Jul 26, 2016 at 12:35 AM, Harry Klein <@Harry_Klein> wrote:

I am not sure if my issue was related:

https://luceeserver.atlassian.net/browse/LDEV-931

Was fixed in release 5.0.1.29, see

http://preview.lucee.org/download/?type=snapshots

-Harry

Von: lucee@googlegroups.com [mailto:lucee@googlegroups.com] *Im Auftrag
von *Jean Moniatte
Gesendet: Dienstag, 26. Juli 2016 09:32
An: lucee@googlegroups.com
Betreff: [Lucee] Re: Lucee CFHTTP post encoding ?

I got the URLs mixed up, sorry.

Works:

http://trycf.com/gist/116af5be108544c093b1fd3b961c804b/lucee5?theme=monokai

Does not work:

http://trycf.com/gist/d364d0ff3fd0497c6a5bab5021f7d8cc/lucee5?theme=monokai

Using the cfhttp charset attribute (with a value of utf-8) leads to the
same results.

Thanks,

Jean

On Tue, Jul 26, 2016 at 12:24 AM, Jean Moniatte <@Jean_Moniatte> wrote:

Hi,

I am having an issue where Lucee base64 encodes the body of cfhttp posts
as soon as they contains non ascii characters.

Everything works as expected when the post body contains only ASCII
characters:

http://trycf.com/gist/d364d0ff3fd0497c6a5bab5021f7d8cc/lucee5?theme=monokai

As soon as the body contains non ascii characters (I added a é in there),
it looks like Lucee base64 encodes the body:

http://trycf.com/gist/d364d0ff3fd0497c6a5bab5021f7d8cc/lucee5?theme=monokai

I am running Lucee5 on Debian and can reproduce this issue on a number of
services we post to.

Is there a way to instruct Lucee to not encode the body of the posts?

Thanks,

Jean


Get 10% off of the regular price for this years CFCamp in Munich, Germany
(Oct. 20th & 21st) with the Lucee discount code Lucee@cfcamp. 189€
instead of 210€. Visit
https://ti.to/cfcamp/cfcamp-2016/discount/Lucee@cfcamp

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAG-7QUt-KW7LQEZKssEbyTWszpufu-_294WbWeiBZRcemAha%3Dw%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAG-7QUt-KW7LQEZKssEbyTWszpufu-_294WbWeiBZRcemAha%3Dw%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


Get 10% off of the regular price for this years CFCamp in Munich, Germany
(Oct. 20th & 21st) with the Lucee discount code Lucee@cfcamp. 189€
instead of 210€. Visit
https://ti.to/cfcamp/cfcamp-2016/discount/Lucee@cfcamp

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/638694c5ddfb49fc989be9d4a7ad0751%40srv-dc3.contens.local
https://groups.google.com/d/msgid/lucee/638694c5ddfb49fc989be9d4a7ad0751%40srv-dc3.contens.local?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.