Hi, what may be of interest for your issues is, that there's a wierd behavior with OXID dealing request-parameters accessed via oxconfig::getParameter(). OXID either takes Get-parameters or Post - mixing is not possible. You can see it in oxconfig's getParameter() method: ... if ( isset( $_SERVER['REQUEST_METHOD'] ) && $_SERVER['REQUEST_METHOD'] == 'POST' && isset( $_POST[$sName] ) ) ...
so if you make a call to a URL with GET-parameters (usually containing your cl-parameter), your Post-data will be ignored, since the server's request-method is set to 'get'. (common trouble-makers here are Web-Services (e.g. payment) which send POST-Data to a given URL). Hopefully OXID will change this behavior some day, until then you'll sometimes still have to deal with Parameters directly on the POST/GET array. Regards, Manuel [email protected] | www.mediaopt.de derksen mediaopt gmbh galvanistrasse 6 | 10587 berlin | +49 (30) 34 09 42-77 fax-66 | ust.-id de265886017 | geschäftsführer dipl.-ing. philipp derksen | amtsgericht charlottenburg | hrb 120935 b -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Korbinian Ober Gesendet: Donnerstag, 27. Mai 2010 13:28 An: [email protected] Betreff: Re: [oxid-dev-general] Using POST to send data to Oxid Module Hi! Do you know what's actually going on in Oxid? I cannot check atm but I think it takes everything that was sent with POST for itself. But a good idea is converting the chars. I'll try to send it like I would normally send the GET parameters, maybe that works. Thanks for your ideas so far! Best, Korbinian On Do, 2010-05-27 at 12:06 +0200, Alexander Kludt wrote: > or you could base64 encode the xml before sending it there > -- > > mit freundlichen Grüßen > Alexander Kludt > __________________________ > > > [email protected] schrieb: > > How about converting the "htmlspcialchars" (<>) to their HTML-entities > > (<>...) before sending, and reconverting them before processing? > > > > So OXID would not see any XML? > > > > -----Ursprüngliche Nachricht----- > > Von: [email protected] > > [mailto:[email protected]] Im Auftrag von > > Korbinian Ober > > Gesendet: Donnerstag, 27. Mai 2010 11:35 > > An: [email protected] > > Betreff: [oxid-dev-general] Using POST to send data to Oxid Module > > > > Hi everyone, > > > > we are currently trying to create a new way to upload to stock to Oxid > > shops with our interface connector. Usually we sent data with GET method > > and appended XML with stock. We want to change this to POST so we can > > actually update more items in one go. But when I try to POST data to our > > module, Oxid somehow tries to interpret the XML I've sent and I get a lot > > of strange errors. > > Can someone help me how I can send POST data to a special Oxid Module? > > > > Thanks a lot, > > > > Korbinian > > > > _______________________________________________ > > dev-general mailing list > > [email protected] > > http://dir.gmane.org/gmane.comp.php.oxid.general _______________________________________________ dev-general mailing list [email protected] http://dir.gmane.org/gmane.comp.php.oxid.general
