Re: XML & HTTP
| From: | Jason Barnett | Date: | Fri, 18 Mar 2005 21:03:20 +0000 |
| Subject: | Re: XML & HTTP | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-211073@lists.php.net to get a copy of this message | ||
Chris Shiflett wrote:
> Jerry Swanson wrote:
>
>> I generated XML file. I need to send the file to another server not
>> through FTP but though HTTP.
>
>
> Yes, I gathered that, but you're not telling us how you're supposed to
> send it. For example, when Google first provided their web API, they
> didn't say, "just send us an XML document." :-)
>
> There are many details you're not giving us (you can leave out the
> details involving the XML document itself, of course), so it's pretty
> much impossible to even guess an answer to your question.
>
> Chris
>
Seriously... Chris is truly trying to help you. There are many, many
ways to send an XML file. The following are HTTP methods off of the top
of my head:
SOAP (possibly with WSDL)
Simple HTTP POST (usually through a form)
Simple HTTP GET (possibly through a form, though passing XML documents
through URL parameters is probably not "A Good Thing".)
It really depends on what the *receiving server* expects. Is there a
documented API? Or perhaps can you just point us to the page (URL) that
is supposed to receive the XML document?
--
Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc