Location: PHPKode > scripts > getpostlib > getpostlib/doc/html/httplib_8php.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>getpostlib: httplib.php File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.3 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<h1>httplib.php File Reference</h1>
<p>
<a href="httplib_8php-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="httplib_8php.html#a1">http_get</a> ($server, $port, $url, $cookie, $additional_fields="")</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="httplib_8php.html#a0">http_post</a> ($server, $port, $url, $cookie, $vars)</td></tr>

</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="a1"></a><!-- doxytag: member=<httplib.php::http_get> ref=<a1> args=<($server, $port, $url, $cookie, $additional_fields="")> --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">http_get           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>server</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>port</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>url</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>cookie</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>additional_fields</em> = <code>""</code></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
This function performs a http GET query (i.e. download a web page or file) and returns the received response. <dl compact><dt><b>Returns:</b></dt><dd>FALSE Something went wrong, possibly the server refused your query or the connection to the server failed. <p>
The response string.</dd></dl>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em>server</em>&nbsp;</td><td>
Server's or proxie's host name or IP. </td></tr>
<tr><td valign="top"><em>port</em>&nbsp;</td><td>
Server's or proxie's port </td></tr>
<tr><td valign="top"><em>url</em>&nbsp;</td><td>
Should point to the URL on the server or full address if a proxy is used. </td></tr>
<tr><td valign="top"><em>cookie</em>&nbsp;</td><td>
The optional cookie string. </td></tr>
<tr><td valign="top"><em>additional_fields</em>&nbsp;</td><td>
Optional string containing additional HTTP request fields, each terminated by "\r\n". </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="httplib_8php-source.html#l00067">67</a> of file <a class="el" href="httplib_8php-source.html">httplib.php</a>.    </td>
  </tr>
</table>
<a class="anchor" name="a0"></a><!-- doxytag: member=<httplib.php::http_post> ref=<a0> args=<($server, $port, $url, $cookie, $vars)> --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">http_post           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">$&nbsp;</td>
          <td class="mdname" nowrap> <em>server</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>port</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>url</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>cookie</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>$&nbsp;</td>
          <td class="mdname" nowrap> <em>vars</em></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
This function performs a http POST query (i.e. form submission) and returns the received response. <dl compact><dt><b>Returns:</b></dt><dd>FALSE Something went wrong, possibly the server refused your query or the connection to the server failed. <p>
The response string.</dd></dl>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em>server</em>&nbsp;</td><td>
Server's or proxie's host name or IP. </td></tr>
<tr><td valign="top"><em>port</em>&nbsp;</td><td>
Server's or proxie's port </td></tr>
<tr><td valign="top"><em>url</em>&nbsp;</td><td>
Should point to the URL on the server or full address if a proxy is used. </td></tr>
<tr><td valign="top"><em>cookie</em>&nbsp;</td><td>
The optional cookie string. </td></tr>
<tr><td valign="top"><em>vars</em>&nbsp;</td><td>
Associative array of POST variables. Each key is the name of the variable and the value is the variable's content </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="httplib_8php-source.html#l00010">10</a> of file <a class="el" href="httplib_8php-source.html">httplib.php</a>.    </td>
  </tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Wed May 25 11:41:54 2005 for getpostlib by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.3 </small></address>
</body>
</html>
Return current item: getpostlib