You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mesut Ali Ergin <er...@eden.rutgers.edu> on 2005/02/15 16:37:32 UTC

CInclude behavior in 2.1.5.1 ang 2.1.6

Hi,

I have a setup that POSTs to some external server to get an output of a 
php script. I make use of CInclude for the purpose.  As I upgraded to 
2.1.6 from 2.1.5.1, CInclude started to make a GET request instead of 
POST. Additionally, GET request encodes parameters into XML with UTF-8 
encoding. The sitemap snippet and remote web server log is appended at 
the end. 2.1.5.1 still works fine with this setup. Any help would be 
greatly appreciated. Thanks.

--
Mesut Ali Ergin


SITEMAP:

            <map:match pattern="getThat.xml">
                <map:generate src="details.xml"/>
                <map:transform type="cinclude"/>
                <map:serialize type="xml"/>
            </map:match>

DETAILS.XML:

<data xmlns:cinclude="http://apache.org/cocoon/include/1.0">

<cinclude:includexml>
    <cinclude:src>http://localhost/theScript.php</cinclude:src>
    <cinclude:configuration>
    <cinclude:parameter>
      <cinclude:name>method</cinclude:name>
      <cinclude:value>POST</cinclude:value>
    </cinclude:parameter>
    </cinclude:configuration>
    <cinclude:parameters>
     <cinclude:parameter>
         <cinclude:name>login</cinclude:name>
         <cinclude:value>y</cinclude:value>
     </cinclude:parameter>
       ....
    </cinclude:parameters>
</cinclude:includexml>

</data>


APACHE ACCESS.LOG:

127.0.0.1 - - [14/Feb/2005:21:58:59 -0500] "GET 
/theScript.php?login=%3C%3Fxml%20version%3D\"1.0\"%20encoding%3D\"UTF-8\"%3F%3Ey  
HTTP/1.1" 200 3907


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org