'; ?> Test WFS-T operated by CCGIS "; echo htmlentities($out); echo "-------------------end of get-------------
"; } function sendToHost($host,$port,$method,$path,$data) { echo "-------------------send-------------
"; echo $host."
".$method."
".$path."
".htmlspecialchars($data)."
"; echo "-------------------end of send-------------
"; $buf = ''; if (empty($method)) { $method = 'POST'; } $method = mb_strtoupper($method); $fp = fsockopen($host, $port); fputs($fp, "$method $path HTTP/1.1\r\n"); fputs($fp, "Host: $host\r\n"); fputs($fp,"Content-type: application/x-www-form-urlencoded\r\n"); fputs($fp, "Content-length: " . strlen($data) . "\r\n"); fputs($fp, "Connection: close\r\n\r\n"); fputs($fp, $data); while (!feof($fp)) { $buf .= fgets($fp,4096); } fclose($fp); return $buf; } ?>
OnlineResource:
Filter: