Skip to content

How do I write to a specific URL using php sockets?

I need to open a socket to a url, then send some data and read the response.

The service is running on a Web server.

So technically I want to open up a connection on port 80, then open up "/service/request" and then send some XML commands and then receive the response.

One Comment

  1. Robin T wrote:

    Have a look at the examples here: http://www.php.net/fsockopen

    Thursday, April 8, 2010 at 11:23 pm | Permalink

Post a Comment

Your email is never published nor shared.