Как отправить XML или JSON документ по HTTP?
// sockets version HTTP/POST function http_post( $url, $data ) { $eol = «\r\n»; $post = »; if (is_array($data)) { foreach( $data as $k => $v) $post .= $k.’=’.urlencode($v).’&’; $post = substr($post,0,-1); $content_type = ‘application/x-www-form-urlencoded’; }…