
PHP
Please notice that this PHP example is not a complete script.
It only shows the method of how the connect can be made.
<?php
$content = "<?xml version_";
$len = strlen($content);
$fp = fsockopen( "xml1.aspsms.com", 5061 , &$errno, &$errdesc );
if ( ! $fp ) die ( "Couldn’t connect: $errno $errdesc\n" );
fputs( $fp, "POST /xmlsvr.asp HTTP/1.0\r\n");
fputs( $fp, "Content-Type: text/xml\r\n");
fputs( $fp, "Content-Length: $len\r\n\r\n");
fputs( $fp, $content);
while ( ! feof( $fp ) )
$reply[] = fgets( $fp, 1024 );
fclose( $fp );
?>