Server to server - Gateway send/receive without client

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
Murble
Forum Newbie
Posts: 11
Joined: Thu Feb 10, 2005 3:27 am

Server to server - Gateway send/receive without client

Post by Murble »

Hello,
I am rewriting a code I wrote in ASP to PHP.

I got a problem.
Im writing a gateway and I need it to transfer data automaticaly.

In ASP I used this object with this code:

to send:

Code: Select all

DataToSend = "xml=<bla bla...>"
Dim xmlhttp
Set xmlhttp = server.Createobject("MSXML2.ServerXMLHTTP")

xmlhttp.Open "POST", "http://www.address.com/file.asp", false
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"

  xmlhttp.send DataToSend
  
Set dbhttp = nothing
end if
and to receive:

Code: Select all

Response.Write xmlhttp.responseText


I am failing to figure how to do this in PHP.
can anyone help me?


Im new to php and kinda lost.

thank you.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Murble
Forum Newbie
Posts: 11
Joined: Thu Feb 10, 2005 3:27 am

Post by Murble »

sorry, Im new to php.
can you give me some guide?
I am lost
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

examples on those pages should get you started.
Murble
Forum Newbie
Posts: 11
Joined: Thu Feb 10, 2005 3:27 am

Post by Murble »

well, no.
since im new,
I sat and sat and played and messed with it and tryed to figure out what to do with all of this information..
and got frustraited and...

Im a C programmer who got accepted to this php job.. so I guess im in over my head.. kinda..


I know it should be something simple, but i have no one to show me and get me started.

well, thanx for trying to help anyway.
Post Reply