Forums / Developer / HTTP Post to URL conversion weird url with brackets in ie

HTTP Post to URL conversion weird url with brackets in ie

Author Message

Marco Caldari

Wednesday 20 August 2008 2:00:30 am

Hello Everybody,
On ez 3.10, I'm trying to set up a HTTP Post to URL to filter on view parameters like ez does in http://ez.no/partner/worldwide_partners .
I followed the example at url http://ez.no/ezpublish/documentation/incoming/http_post_to_url_conversion and everything works smooth with mozilla firefox...

After the post the url..
/content/view/full/828/(ay)/2008/(am)/08/(ad)/14/(py)/2008/(pm)/08/(pd)/14/(service)/5/(stars)/4
is created and fetch works fine.. this with <b>mozilla firefox</b>,

If I repeat the post with <b>internet explorer</b> i get instead this url..
/content/view/full/828/%28ay%29/2008/%28am%29/09/%28ad%29/05/%28py%29/2008/%28pm%29/09/%28pd%29/12/%28service%29/0/%28stars%29/4

with curved brackets replaced by %28 and %29 of course the fetch doens't work anymore and I get results from the fetch only if i reload the page..

I confronted what ez does here:
http://ez.no/partner/worldwide_partners
where everything works fine with internet explorer too
ad what is explained here
http://ez.no/ezpublish/documentation/incoming/http_post_to_url_conversion

And I see that in the above mentioned page EZ doesn't use:

<form action="content/action" method="post">

but:

<form action="/ezposttoview/action" method="post">

And the brackets are placed via action and not via html,
to explain it better..
I have in my html of the posting page:

<select name="(service)">     


while ez in the worldwide_partners would have:

<select name="service">     


Adding the bracket later, via post action, to get /(service)/5
I hacked the kernel /kernel/content/action.php at line 1304 to ad the brackets and palced in my html:

<select name="service">     


everithing works but the problem still remains with internet explorer

Checked the http headers, checked my files, everithing is utf-8..

Where can I get this /ezposttoview/action ?
Infact if I call it in my posting html page tpl I get kernel (20) module not found..

Can somenone help me to fix this issue?
Thanks in advance,
Marco

Hans Melis

Wednesday 20 August 2008 2:51:35 am

Hello Marco,

The reason for the failure in IE should not be the %28 and %29. We also use the POST to URL conversion in several places and IE indeed shows the urlencoded brackets but it still works fine.

Hans
http://blog.hansmelis.be