calum.mackenzie Posted December 17, 2008 Share Posted December 17, 2008 Hi thanks for having a look I have got an issue receiving valid XML from a flash application passed via GET. When i packet sniff i get a nice valid looking xml_instruction /savepublish.php?&media_id=229&article_id=377&audio_length=133&publish=0&xml_instructions=%3CPlaylist%3E%0A%20%20%3CMediaData%C4%89%09%C4%8D%C4%8F%C4%91%C4%81%C4%83back%C4%93%C4%95%C4%8Bm%C4%9Aaid%3D%272 however once it has passed via apache and php into my db it comes out looking like %3CPlaylist%3E%0A++%3CMediaData%C4%89%09%C4%8D%C4%8F%C4%91%C4%81%C4%83back%C4%93%C4%95%C4%8Bm%C4%9Aaid%3D%5C%27210%5C%27+na%C....etc I have tried many methods of encoding and decoding but it doesn't seem to get me back to valid looking xml. Any help ideas is so very appreciated, could it be a config issue with apache or php? Link to comment https://forums.phpfreaks.com/topic/137374-passing-xml-via-get/ Share on other sites More sharing options...
redarrow Posted December 17, 2008 Share Posted December 17, 2008 what in the database at the moment, xml? Link to comment https://forums.phpfreaks.com/topic/137374-passing-xml-via-get/#findComment-717762 Share on other sites More sharing options...
calum.mackenzie Posted December 17, 2008 Author Share Posted December 17, 2008 it is supposed to be url encoded xml but i get this %3CPlaylist%3E%0A++%3CMediaData%C4%89%09%C4%8D%C4%8F%C4%91%C4%81%C4%83back%C4%93%C4%95%C4%8Bm%C4%9Aaid%3D%5C%27210%5C%27+na%C which isnt valid when decoded Link to comment https://forums.phpfreaks.com/topic/137374-passing-xml-via-get/#findComment-717764 Share on other sites More sharing options...
calum.mackenzie Posted December 17, 2008 Author Share Posted December 17, 2008 Been check my packet sniffer again the xml in there seems invalid also. Anyone seen any good guides to passing data from flash to php which could help me, would sending xml via POST be a better method Link to comment https://forums.phpfreaks.com/topic/137374-passing-xml-via-get/#findComment-717803 Share on other sites More sharing options...
flyhoney Posted December 17, 2008 Share Posted December 17, 2008 It looks like at some point '%20' is being turned in to '+', which is the difference between urlencode and rawurlencode. I prefer passing JSON as post but I don't know exactly what your application calls for. Link to comment https://forums.phpfreaks.com/topic/137374-passing-xml-via-get/#findComment-717809 Share on other sites More sharing options...
flyhoney Posted December 17, 2008 Share Posted December 17, 2008 Post the original XML and maybe we can see a way to encode/decode it. Link to comment https://forums.phpfreaks.com/topic/137374-passing-xml-via-get/#findComment-717813 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.