Overview Package Tree | HessianPHP |
FRAMES NO FRAMES | |
SUMMARY: FIELD METHOD | DETAIL: FIELD METHOD |
HessianPHP.Http.HttpConnection
|
+--HessianPHP.Http.SocketHttpConnection
class SocketHttpConnection
extends HttpConnection
This class stablishes communication to a remote Http URL using sockets and raw data transmission
Field Summary |
---|
private var | $__socket |
Fields inherited from HessianPHP.Http.HttpConnection | |
---|---|
$url $urlInfo $options $headers $responseHeaders $code $message $httpVersion $error $length |
Method Summary |
---|
public string | POST Sends an HTTP request using the POST method |
public void | open Opens a socket connection to a remote host |
protected void | close |
protected void | write |
protected void | parseHeaders Parses incoming header information and checks for repeated headers |
public string | read Read the reply from the socket, parses incoming headers and returns the content |
Methods inherited from HessianPHP.Http.HttpConnection | |
---|---|
HttpConnection, initUrl, addHeader, hasError, POST |
Field Detail |
---|
private var $__socket
Method Detail |
---|
public string POST(string data)
Sends an HTTP request using the POST method
data
- Content to be sent public void open(string host, int port)
Opens a socket connection to a remote host
host
- Remote host port
- Remote port protected void close()
protected void write(var $data)
$data
protected void parseHeaders(string head = '')
Parses incoming header information and checks for repeated headers
head
- first line of HTTP headers public string read()
Read the reply from the socket, parses incoming headers and returns the content
Overview Package Tree | HessianPHP |
FRAMES NO FRAMES | |
SUMMARY: FIELD METHOD | DETAIL: FIELD METHOD |