Sending Raw POST Data

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Ree
Forum Regular
Posts: 592
Joined: Fri Jun 10, 2005 1:43 am
Location: LT

Sending Raw POST Data

Post by Ree »

Basically, I need to send XML messages as raw POST data to a server address and then read the XML response I get. What would be the best way to do this? CURL?

It's not calling remote methods or anything, just sending XML messages, for example:

Code: Select all

<Root>
  <Header>
    <SomeTag>...</SomeTag>
    <AnotherTag>...</AnotherTag>
  </Header>
  <Main>
    <Tag>...</Tag>
    <Tag>...</Tag>
    <Tag>...</Tag>
    <Tag>...</Tag>
  </Main>
</Root>
The responses would be similar
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Post Reply