joking Posted August 23, 2006 Share Posted August 23, 2006 Hi, I am doing a project using PHP and MySQL.In my project i must send a XML POST OVER HTTP to an API link.Can i plz get some help about doing it ? Thank you Quote Link to comment Share on other sites More sharing options...
daiwa Posted August 23, 2006 Share Posted August 23, 2006 what you probably want to look at first is the API from the place you are linking to, odds are they have something that makes sense. if not you can fopen a connection to the site and push the data you want along. Read the manual on Fopen, also of use if the XML librairies if you don't know what your creating.he're a litle example of what you'll want to do in pseudo code.1.create your XML file2.fopen the url u want ( u can use HTTPost to make this easier but you might not like the arrays and stuff http://www.phpclasses.org/browse/package/375.html )3. "write" the data to the fopen (just like you'd write a file) Quote Link to comment Share on other sites More sharing options...
joking Posted August 23, 2006 Author Share Posted August 23, 2006 Hi, I will clarify my sitution more.This is the XML code.<request requestID="201" requestUN="JoKinG"></request>I wanna post it to this link : https://process.csc24seven.com/gateway/api.aspxThank you Quote Link to comment Share on other sites More sharing options...
joking Posted August 23, 2006 Author Share Posted August 23, 2006 Hi daiwa,I tried the function located in http://www.phpclasses.org/browse/package/375.html.It dont seem to be working .I didnt get any response ...Plz advice Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.