Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 1819

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_09) on Tue Aug 07 17:07:31 CEST 2007 -->
<TITLE>
QHttp
</TITLE>

<META NAME="keywords" CONTENT="com.trolltech.qt.network.QHttp class">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="QHttp";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/network/QHostInfo.HostInfoError.html" title="enum in com.trolltech.qt.network"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/network/QHttp.ConnectionMode.html" title="enum in com.trolltech.qt.network"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/network/QHttp.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QHttp.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.trolltech.qt.network</FONT>
<BR>
Class QHttp</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">com.trolltech.qt.QSignalEmitter</A>
      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">com.trolltech.qt.QtJambiObject</A>
          <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">com.trolltech.qt.core.QObject</A>
              <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.trolltech.qt.network.QHttp</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>QHttp</B><DT>extends <A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A></DL>
</PRE>

<P>
<p>The <a href="QHttp.html#QHttp(com.trolltech.qt.core.QObject)"><tt>QHttp</tt></a> class provides an implementation of the HTTP protocol.</p>
<p>This class provides a direct interface to HTTP that allows you to have more control over the requests and that allows you to access the response header fields.</p>
<p>The class works asynchronously, so there are no blocking functions. If an operation cannot be executed immediately, the function will still return straight away and the operation will be scheduled for later execution. The results of scheduled operations are reported via signals. This approach depends on the event loop being in operation.</p>
<p>The operations that can be scheduled (they are called &quot;requests&quot; in the rest of the documentation) are the following: setHost(), <a href="QHttp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice)"><tt>get</tt></a>, <a href="QHttp.html#post(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QIODevice)"><tt>post</tt></a>, <a href="QHttp.html#head(java.lang.String)"><tt>head</tt></a> and <a href="QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice)"><tt>request</tt></a>.</p>
<p>All of these requests return a unique identifier that allows you to keep track of the request that is currently executed. When the execution of a request starts, the <a href="QHttp.html#requestStarted(int)"><tt>requestStarted</tt></a> signal with the identifier is emitted and when the request is finished, the <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a> signal is emitted with the identifier and a bool that indicates if the request finished with an error.</p>
<p>To make an HTTP request you must set up suitable HTTP headers. The following example demonstrates, how to request the main HTML page from the Trolltech home page (i.e&#x2e; the URL <tt>http:<span class="comment">//www.trolltech.com/index.html</span></tt>):</p>
<pre>    QHttpRequestHeader header(&quot;GET&quot;, &quot;/index.html&quot;);
    header.setValue(&quot;Host&quot;, &quot;www.trolltech.com&quot;);
    http-&gt;setHost(&quot;www.trolltech.com&quot;);
    http-&gt;request(header);</pre>
<p>For the common HTTP requests <tt>GET</tt>, <tt>POST</tt> and <tt>HEAD</tt>, <a href="QHttp.html#QHttp(com.trolltech.qt.core.QObject)"><tt>QHttp</tt></a> provides the convenience functions <a href="QHttp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice)"><tt>get</tt></a>, <a href="QHttp.html#post(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QIODevice)"><tt>post</tt></a> and <a href="QHttp.html#head(java.lang.String)"><tt>head</tt></a>. They already use a reasonable header and if you don't have to set special header fields, they are easier to use. The above example can also be written as:</p>
<pre>    http-&gt;setHost(&quot;www.trolltech.com&quot;); <span class="comment">// id == 1</span>
    http-&gt;get(&quot;/index.html&quot;);           <span class="comment">// id == 2</span></pre>
<p>For this example the following sequence of signals is emitted (with small variations, depending on network traffic, etc.):</p>
<pre>    requestStarted(1)
    requestFinished(1, false)

    requestStarted(2)
    stateChanged(Connecting)
    stateChanged(Sending)
    dataSendProgress(77, 77)
    stateChanged(Reading)
    responseHeaderReceived(responseheader)
    dataReadProgress(5388, 0)
    readyRead(responseheader)
    dataReadProgress(18300, 0)
    readyRead(responseheader)
    stateChanged(Connected)
    requestFinished(2, false)

    done(false)

    stateChanged(Closing)
    stateChanged(Unconnected)</pre>
<p>The <a href="QHttp.html#dataSendProgress(int, int)"><tt>dataSendProgress</tt></a> and <a href="QHttp.html#dataReadProgress(int, int)"><tt>dataReadProgress</tt></a> signals in the above example are useful if you want to show a <a href="%2E%2E/gui/QProgressBar.html">progress bar</tt></a> to inform the user about the progress of the download. The second argument is the total size of data. In certain cases it is not possible to know the total amount in advance, in which case the second argument is 0. (If you connect to a <a href="%2E%2E/gui/QProgressBar.html"><tt>QProgressBar</tt></a> a total of 0 results in a busy indicator.)</p>
<p>When the response header is read, it is reported with the <a href="QHttp.html#responseHeaderReceived(com.trolltech.qt.network.QHttpResponseHeader)"><tt>responseHeaderReceived</tt></a> signal.</p>
<p>The <a href="QHttp.html#readyRead(com.trolltech.qt.network.QHttpResponseHeader)"><tt>readyRead</tt></a> signal tells you that there is data ready to be read. The amount of data can then be queried with the <a href="QHttp.html#bytesAvailable()"><tt>bytesAvailable</tt></a> function and it can be read with the read() or <a href="QHttp.html#readAll()"><tt>readAll</tt></a> functions.</p>
<p>If an error occurs during the execution of one of the commands in a sequence of commands, all the pending commands (i.e&#x2e; scheduled, but not yet executed commands) are cleared and no signals are emitted for them.</p>
<p>For example, if you have the following sequence of requests</p>
<pre>    http-&gt;setHost(&quot;www.foo.bar&quot;);       <span class="comment">// id == 1</span>
    http-&gt;get(&quot;/index.html&quot;);           <span class="comment">// id == 2</span>
    http-&gt;post(&quot;register.html&quot;, data);  <span class="comment">// id == 3</span></pre>
<p>and the <a href="QHttp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice)"><tt>get</tt></a> request fails because the host lookup fails, then the <a href="QHttp.html#post(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QIODevice)"><tt>post</tt></a> request is never executed and the signals would look like this:</p>
<pre>    requestStarted(1)
    requestFinished(1, false)

    requestStarted(2)
    stateChanged(HostLookup)
    requestFinished(2, true)

    done(true)

    stateChanged(Unconnected)</pre>
<p>You can then get details about the error with the <a href="QHttp.html#error()"><tt>error</tt></a> and <a href="QHttp.html#errorString()"><tt>errorString</tt></a> functions. Note that only unexpected behavior, like network failure is considered as an error. If the server response contains an error status, like a 404 response, this is reported as a normal response case. So you should always check the status code</tt> of the response header.</p>
<p>The functions <a href="QHttp.html#currentId()"><tt>currentId</tt></a> and <a href="QHttp.html#currentRequest()"><tt>currentRequest</tt></a> provide more information about the currently executing request.</p>
<p>The functions <a href="QHttp.html#hasPendingRequests()"><tt>hasPendingRequests</tt></a> and <a href="QHttp.html#clearPendingRequests()"><tt>clearPendingRequests</tt></a> allow you to query and clear the list of pending requests.</p>
<P>

<P>
<DL>
<DT><B>See Also:</B><DD><a href="QFtp.html"><tt>QFtp</tt></a>, 
<CODE>Example</tt></CODE>, 
<CODE>Example</tt></CODE></DL>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->

<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.ConnectionMode.html" title="enum in com.trolltech.qt.network">QHttp.ConnectionMode</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum is used to specify the mode of connection to use.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.Error.html" title="enum in com.trolltech.qt.network">QHttp.Error</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum identifies the error that occurred.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.State.html" title="enum in com.trolltech.qt.network">QHttp.State</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum is used to specify the state the client is in.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="type parameter in QSignalEmitter.Signal1">A</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">B</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">C</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="class in com.trolltech.qt">QSignalEmitter.Signal4</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">D</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="class in com.trolltech.qt">QSignalEmitter.Signal5</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">E</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="class in com.trolltech.qt">QSignalEmitter.Signal6</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">F</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="class in com.trolltech.qt">QSignalEmitter.Signal7</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">G</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="class in com.trolltech.qt">QSignalEmitter.Signal8</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">H</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="class in com.trolltech.qt">QSignalEmitter.Signal9</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">H</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">I</A>&gt;</CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A>&lt;java.lang.String,java.lang.Integer,<A HREF="../../../../com/trolltech/qt/network/QAuthenticator.html" title="class in com.trolltech.qt.network">QAuthenticator</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#authenticationRequired">authenticationRequired</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;java.lang.Integer,java.lang.Integer&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#dataReadProgress">dataReadProgress</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted when this object reads data from a HTTP server to indicate the current progress of the download.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;java.lang.Integer,java.lang.Integer&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#dataSendProgress">dataSendProgress</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted when this object sends data to a HTTP server to inform it about the progress of the upload.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Boolean&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#done">done</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted when the last pending request has finished; (it is emitted after the last request's <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a> signal).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;<A HREF="../../../../com/trolltech/qt/network/QNetworkProxy.html" title="class in com.trolltech.qt.network">QNetworkProxy</A>,<A HREF="../../../../com/trolltech/qt/network/QAuthenticator.html" title="class in com.trolltech.qt.network">QAuthenticator</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#proxyAuthenticationRequired">proxyAuthenticationRequired</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/network/QHttpResponseHeader.html" title="class in com.trolltech.qt.network">QHttpResponseHeader</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#readyRead">readyRead</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted when there is new response data to read.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;java.lang.Integer,java.lang.Boolean&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#requestFinished">requestFinished</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted when processing the request identified by <tt>arg__1</tt> has finished.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Integer&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#requestStarted">requestStarted</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted when processing the request identified by <tt>arg__1</tt> starts.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/network/QHttpResponseHeader.html" title="class in com.trolltech.qt.network">QHttpResponseHeader</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#responseHeaderReceived">responseHeaderReceived</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted when the HTTP header of a server response is available.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Integer&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#stateChanged">stateChanged</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted when the state of the <a href="QHttp.html#QHttp(com.trolltech.qt.core.QObject)"><tt>QHttp</tt></a> object changes.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#QHttp()">QHttp</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QHttp.html#QHttp(com.trolltech.qt.core.QObject)"><tt>QHttp</tt></a>(0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#QHttp(com.trolltech.qt.core.QObject)">QHttp</A></B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a <a href="QHttp.html#QHttp(com.trolltech.qt.core.QObject)"><tt>QHttp</tt></a> object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#QHttp(java.lang.String, int)">QHttp</A></B>(java.lang.String&nbsp;hostname,
      int&nbsp;port)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is an overloaded constructor provided for convenince.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#QHttp(java.lang.String, int, com.trolltech.qt.core.QObject)">QHttp</A></B>(java.lang.String&nbsp;hostname,
      int&nbsp;port,
      <A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is an overloaded constructor provided for convenince.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#QHttp(java.lang.String, com.trolltech.qt.network.QHttp.ConnectionMode, int)">QHttp</A></B>(java.lang.String&nbsp;hostname,
      <A HREF="../../../../com/trolltech/qt/network/QHttp.ConnectionMode.html" title="enum in com.trolltech.qt.network">QHttp.ConnectionMode</A>&nbsp;mode,
      int&nbsp;port)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is an overloaded constructor provided for convenince.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#QHttp(java.lang.String, com.trolltech.qt.network.QHttp.ConnectionMode, int, com.trolltech.qt.core.QObject)">QHttp</A></B>(java.lang.String&nbsp;hostname,
      <A HREF="../../../../com/trolltech/qt/network/QHttp.ConnectionMode.html" title="enum in com.trolltech.qt.network">QHttp.ConnectionMode</A>&nbsp;mode,
      int&nbsp;port,
      <A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a QHttp object.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#abort()">abort</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Aborts the current request and deletes all scheduled requests.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#bytesAvailable()">bytesAvailable</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of bytes that can be read from the response content at the moment.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#clearPendingRequests()">clearPendingRequests</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Deletes all pending requests from the list of scheduled requests.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#close()">close</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Closes the connection; this is useful if you have a keep-alive connection and want to close it.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#currentDestinationDevice()">currentDestinationDevice</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <a href="%2E%2E/core/QIODevice.html"><tt>QIODevice</tt></a> pointer that is used as to store the data of the HTTP request being executed.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#currentId()">currentId</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the identifier of the HTTP request being executed or 0 if there is no request being executed (i.e&#x2e; they've all finished).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/network/QHttpRequestHeader.html" title="class in com.trolltech.qt.network">QHttpRequestHeader</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#currentRequest()">currentRequest</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the request header of the HTTP request being executed.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#currentSourceDevice()">currentSourceDevice</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <a href="%2E%2E/core/QIODevice.html"><tt>QIODevice</tt></a> pointer that is used as the data source of the HTTP request being executed.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/network/QHttp.Error.html" title="enum in com.trolltech.qt.network">QHttp.Error</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#error()">error</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the last error that occurred.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#errorString()">errorString</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a human-readable description of the last error that occurred.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/network/QHttp.html" title="class in com.trolltech.qt.network">QHttp</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#fromNativePointer(com.trolltech.qt.QNativePointer)">fromNativePointer</A></B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns the QHttp instance pointed to by nativePointer</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#get(java.lang.String)">get</A></B>(java.lang.String&nbsp;path)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QHttp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice)">get</tt></a>(<tt>path</tt>, 0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice)">get</A></B>(java.lang.String&nbsp;path,
    <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;to)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sends a get request for <tt>path</tt> to the server set by setHost() or as specified in the constructor.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#hasPendingRequests()">hasPendingRequests</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if there are any requests scheduled that have not yet been executed; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#head(java.lang.String)">head</A></B>(java.lang.String&nbsp;path)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sends a header request for <tt>path</tt> to the server set by setHost() or as specified in the constructor.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#ignoreSslErrors()">ignoreSslErrors</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tells the QSslSocket used for the Http connection to ignore the errors reported in the sslErrors() signal.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/network/QHttpResponseHeader.html" title="class in com.trolltech.qt.network">QHttpResponseHeader</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#lastResponse()">lastResponse</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the received response header of the most recently finished HTTP request.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#post(java.lang.String, com.trolltech.qt.core.QByteArray)">post</A></B>(java.lang.String&nbsp;path,
     <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;data)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QHttp.html#post(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QIODevice)">post</tt></a>(<tt>path</tt>, <tt>data</tt>, 0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#post(java.lang.String, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice)">post</A></B>(java.lang.String&nbsp;path,
     <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;data,
     <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;to)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<tt>data</tt> is used as the content data of the HTTP request.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#post(java.lang.String, com.trolltech.qt.core.QIODevice)">post</A></B>(java.lang.String&nbsp;path,
     <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;data)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QHttp.html#post(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QIODevice)">post</tt></a>(<tt>path</tt>, <tt>data</tt>, 0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#post(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QIODevice)">post</A></B>(java.lang.String&nbsp;path,
     <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;data,
     <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;to)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sends a post request for <tt>path</tt> to the server set by setHost() or as specified in the constructor.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#read(byte[])">read</A></B>(byte[]&nbsp;data)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads from the response content into <tt>data</tt> and
returns the number of bytes read.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#readAll()">readAll</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads all the bytes from the response content and returns them.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader)">request</A></B>(<A HREF="../../../../com/trolltech/qt/network/QHttpRequestHeader.html" title="class in com.trolltech.qt.network">QHttpRequestHeader</A>&nbsp;header)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice)">request</tt></a>(<tt>header</tt>, 0, 0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QByteArray)">request</A></B>(<A HREF="../../../../com/trolltech/qt/network/QHttpRequestHeader.html" title="class in com.trolltech.qt.network">QHttpRequestHeader</A>&nbsp;header,
        <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;data)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice)">request</tt></a>(<tt>header</tt>, <tt>data</tt>, 0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice)">request</A></B>(<A HREF="../../../../com/trolltech/qt/network/QHttpRequestHeader.html" title="class in com.trolltech.qt.network">QHttpRequestHeader</A>&nbsp;header,
        <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;data,
        <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;to)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<tt>data</tt> is used as the content data of the HTTP request.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QIODevice)">request</A></B>(<A HREF="../../../../com/trolltech/qt/network/QHttpRequestHeader.html" title="class in com.trolltech.qt.network">QHttpRequestHeader</A>&nbsp;header,
        <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;device)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice)">request</tt></a>(<tt>header</tt>, <tt>device</tt>, 0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QIODevice)">request</A></B>(<A HREF="../../../../com/trolltech/qt/network/QHttpRequestHeader.html" title="class in com.trolltech.qt.network">QHttpRequestHeader</A>&nbsp;header,
        <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;device,
        <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;to)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sends a request to the server set by setHost() or as specified in the constructor.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#setHost(java.lang.String, int)">setHost</A></B>(java.lang.String&nbsp;hostname,
        int&nbsp;port)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the HTTP server that is used for requests to <tt>hostname</tt> on port
<tt>port</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#setHost(java.lang.String, com.trolltech.qt.network.QHttp.ConnectionMode, int)">setHost</A></B>(java.lang.String&nbsp;hostname,
        <A HREF="../../../../com/trolltech/qt/network/QHttp.ConnectionMode.html" title="enum in com.trolltech.qt.network">QHttp.ConnectionMode</A>&nbsp;mode,
        int&nbsp;port)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the HTTP server that is used for requests to <tt>hostname</tt> on
port <tt>port using the connection mode <tt>mode</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#setProxy(com.trolltech.qt.network.QNetworkProxy)">setProxy</A></B>(<A HREF="../../../../com/trolltech/qt/network/QNetworkProxy.html" title="class in com.trolltech.qt.network">QNetworkProxy</A>&nbsp;proxy)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enables HTTP proxy support using the proxy settings from <tt>proxy</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#setProxy(java.lang.String, int)">setProxy</A></B>(java.lang.String&nbsp;host,
         int&nbsp;port)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QHttp.html#setProxy(com.trolltech.qt.network.QNetworkProxy)"><tt>setProxy</tt></a>(<tt>host</tt>, <tt>port</tt>, QString(), QString()).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#setProxy(java.lang.String, int, java.lang.String)">setProxy</A></B>(java.lang.String&nbsp;host,
         int&nbsp;port,
         java.lang.String&nbsp;username)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QHttp.html#setProxy(com.trolltech.qt.network.QNetworkProxy)"><tt>setProxy</tt></a>(<tt>host</tt>, <tt>port</tt>, <tt>username</tt>, QString()).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#setProxy(java.lang.String, int, java.lang.String, java.lang.String)">setProxy</A></B>(java.lang.String&nbsp;host,
         int&nbsp;port,
         java.lang.String&nbsp;username,
         java.lang.String&nbsp;password)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enables HTTP proxy support, using the proxy server <tt>host</tt> on port <tt>port</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#setSocket(com.trolltech.qt.network.QTcpSocket)">setSocket</A></B>(<A HREF="../../../../com/trolltech/qt/network/QTcpSocket.html" title="class in com.trolltech.qt.network">QTcpSocket</A>&nbsp;socket)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Replaces the internal <a href="QTcpSocket.html"><tt>QTcpSocket</tt></a> that <a href="QHttp.html#QHttp(com.trolltech.qt.core.QObject)"><tt>QHttp</tt></a> uses with <tt>socket</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#setUser(java.lang.String)">setUser</A></B>(java.lang.String&nbsp;username)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QHttp.html#setUser(java.lang.String, java.lang.String)"><tt>setUser</tt></a>(<tt>username</tt>, QString()).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#setUser(java.lang.String, java.lang.String)">setUser</A></B>(java.lang.String&nbsp;username,
        java.lang.String&nbsp;password)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function sets the user name <tt>username</tt> and password <tt>password</tt> for web pages that require authentication.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/network/QHttp.State.html" title="enum in com.trolltech.qt.network">QHttp.State</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QHttp.html#state()">state</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current state of the object.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.core.QObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.core.<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/core/QObject.html#blockSignals(boolean)">blockSignals</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#childEvent(com.trolltech.qt.core.QChildEvent)">childEvent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#children()">children</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#connectSlotsByName()">connectSlotsByName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#customEvent(com.trolltech.qt.core.QEvent)">customEvent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#disposeLater()">disposeLater</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dumpObjectInfo()">dumpObjectInfo</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dumpObjectTree()">dumpObjectTree</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dynamicPropertyNames()">dynamicPropertyNames</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#event(com.trolltech.qt.core.QEvent)">event</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#eventFilter(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)">eventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild()">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild(java.lang.Class)">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild(java.lang.Class, java.lang.String)">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren()">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class, com.trolltech.qt.core.QRegExp)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class, java.lang.String)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#installEventFilter(com.trolltech.qt.core.QObject)">installEventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#isWidgetType()">isWidgetType</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#killTimer(int)">killTimer</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#moveToThread(java.lang.Thread)">moveToThread</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#objectName()">objectName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#parent()">parent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#property(java.lang.String)">property</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#removeEventFilter(com.trolltech.qt.core.QObject)">removeEventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setObjectName(java.lang.String)">setObjectName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setParent(com.trolltech.qt.core.QObject)">setParent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setProperty(java.lang.String, java.lang.Object)">setProperty</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#signalsBlocked()">signalsBlocked</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#startTimer(int)">startTimer</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#thread()">thread</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#timerEvent(com.trolltech.qt.core.QTimerEvent)">timerEvent</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiObject.html#dispose()">dispose</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#disposed()">disposed</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#finalize()">finalize</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#reassignNativeResources(com.trolltech.qt.QtJambiObject, java.lang.Class)">reassignNativeResources</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String, int)">tr</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect()">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect(java.lang.Object)">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalSender()">signalSender</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiInterface"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from interface com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#disableGarbageCollection()">disableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativeId()">nativeId</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativePointer()">nativePointer</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#reenableGarbageCollection()">reenableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#setJavaOwnership()">setJavaOwnership</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->

<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="dataReadProgress"><!-- --></A><H3>
dataReadProgress</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;java.lang.Integer,java.lang.Integer&gt; <B>dataReadProgress</B></PRE>
<DL>
<DD><p>This signal is emitted when this object reads data from a HTTP server to indicate the current progress of the download.</p>
<p><tt>arg__1</tt> is the amount of data that has already arrived and <tt>arg__2</tt> is the total amount of data. It is possible that the total amount of data that should be transferred cannot be determined, in which case <tt>arg__2</tt> is 0.(If you connect to a <a href="%2E%2E/gui/QProgressBar.html"><tt>QProgressBar</tt></a>, the progress bar shows a busy indicator if the total is 0).</p>
<p><b>Warning:</b> <tt>arg__1</tt> and <tt>arg__2</tt> are not necessarily the size in bytes, since for large files these values might need to be &quot;scaled&quot; to avoid overflow.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(int arg__1, int arg__2)</tt></dd>
<dd><tt>void mySlot(int arg__1)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<dl>
<dt><b>See Also:</b></dt>
<dd><a href="QHttp.html#dataSendProgress(int, int)"><tt>dataSendProgress</tt></a>, <a href="QHttp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice)"><tt>get</tt></a>, <a href="QHttp.html#post(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QIODevice)"><tt>post</tt></a>, <a href="QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice)"><tt>request</tt></a>, <a href="%2E%2E/gui/QProgressBar.html"><tt>QProgressBar</tt></a></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="dataSendProgress"><!-- --></A><H3>
dataSendProgress</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;java.lang.Integer,java.lang.Integer&gt; <B>dataSendProgress</B></PRE>
<DL>
<DD><p>This signal is emitted when this object sends data to a HTTP server to inform it about the progress of the upload.</p>
<p><tt>arg__1</tt> is the amount of data that has already arrived and <tt>arg__2</tt> is the total amount of data. It is possible that the total amount of data that should be transferred cannot be determined, in which case <tt>arg__2</tt> is 0.(If you connect to a <a href="%2E%2E/gui/QProgressBar.html"><tt>QProgressBar</tt></a>, the progress bar shows a busy indicator if the total is 0).</p>
<p><b>Warning:</b> <tt>arg__1</tt> and <tt>arg__2</tt> are not necessarily the size in bytes, since for large files these values might need to be &quot;scaled&quot; to avoid overflow.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(int arg__1, int arg__2)</tt></dd>
<dd><tt>void mySlot(int arg__1)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<dl>
<dt><b>See Also:</b></dt>
<dd><a href="QHttp.html#dataReadProgress(int, int)"><tt>dataReadProgress</tt></a>, <a href="QHttp.html#post(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QIODevice)"><tt>post</tt></a>, <a href="QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice)"><tt>request</tt></a>, <a href="%2E%2E/gui/QProgressBar.html"><tt>QProgressBar</tt></a></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="done"><!-- --></A><H3>
done</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Boolean&gt; <B>done</B></PRE>
<DL>
<DD><p>This signal is emitted when the last pending request has finished; (it is emitted after the last request's <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a> signal). <tt>arg__1</tt> is true if an error occurred during the processing; otherwise <tt>arg__1</tt> is false.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(boolean arg__1)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<dl>
<dt><b>See Also:</b></dt>
<dd><a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a>, <a href="QHttp.html#error()"><tt>error</tt></a>, <a href="QHttp.html#errorString()"><tt>errorString</tt></a></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="readyRead"><!-- --></A><H3>
readyRead</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/network/QHttpResponseHeader.html" title="class in com.trolltech.qt.network">QHttpResponseHeader</A>&gt; <B>readyRead</B></PRE>
<DL>
<DD><p>This signal is emitted when there is new response data to read.</p>
<p>If you specified a device in the request where the data should be written to, then this signal is <i>not</i> emitted; instead the data is written directly to the device.</p>
<p>The response header is passed in <tt>resp</tt>.</p>
<p>You can read the data with the <a href="QHttp.html#readAll()"><tt>readAll</tt></a> or read() functions</p>
<p>This signal is useful if you want to process the data in chunks as soon as it becomes available. If you are only interested in the complete data, just connect to the <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a> signal and read the data then instead.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(com.trolltech.qt.network.QHttpResponseHeader resp)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<dl>
<dt><b>See Also:</b></dt>
<dd><a href="QHttp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice)"><tt>get</tt></a>, <a href="QHttp.html#post(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QIODevice)"><tt>post</tt></a>, <a href="QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice)"><tt>request</tt></a>, <a href="QHttp.html#readAll()"><tt>readAll</tt></a>, <tt>read</tt>, <a href="QHttp.html#bytesAvailable()"><tt>bytesAvailable</tt></a></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="requestFinished"><!-- --></A><H3>
requestFinished</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;java.lang.Integer,java.lang.Boolean&gt; <B>requestFinished</B></PRE>
<DL>
<DD><p>This signal is emitted when processing the request identified by <tt>arg__1</tt> has finished. <tt>arg__2</tt> is true if an error occurred during the processing; otherwise <tt>arg__2</tt> is false.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(int arg__1, boolean arg__2)</tt></dd>
<dd><tt>void mySlot(int arg__1)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<dl>
<dt><b>See Also:</b></dt>
<dd><a href="QHttp.html#requestStarted(int)"><tt>requestStarted</tt></a>, <a href="QHttp.html#done(boolean)"><tt>done</tt></a>, <a href="QHttp.html#error()"><tt>error</tt></a>, <a href="QHttp.html#errorString()"><tt>errorString</tt></a></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="requestStarted"><!-- --></A><H3>
requestStarted</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Integer&gt; <B>requestStarted</B></PRE>
<DL>
<DD><p>This signal is emitted when processing the request identified by <tt>arg__1</tt> starts.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(int arg__1)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<dl>
<dt><b>See Also:</b></dt>
<dd><a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a>, <a href="QHttp.html#done(boolean)"><tt>done</tt></a></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="responseHeaderReceived"><!-- --></A><H3>
responseHeaderReceived</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/network/QHttpResponseHeader.html" title="class in com.trolltech.qt.network">QHttpResponseHeader</A>&gt; <B>responseHeaderReceived</B></PRE>
<DL>
<DD><p>This signal is emitted when the HTTP header of a server response is available. The header is passed in <tt>resp</tt>.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(com.trolltech.qt.network.QHttpResponseHeader resp)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<dl>
<dt><b>See Also:</b></dt>
<dd><a href="QHttp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice)"><tt>get</tt></a>, <a href="QHttp.html#post(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QIODevice)"><tt>post</tt></a>, <a href="QHttp.html#head(java.lang.String)"><tt>head</tt></a>, <a href="QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice)"><tt>request</tt></a>, <a href="QHttp.html#readyRead(com.trolltech.qt.network.QHttpResponseHeader)"><tt>readyRead</tt></a></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="stateChanged"><!-- --></A><H3>
stateChanged</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;java.lang.Integer&gt; <B>stateChanged</B></PRE>
<DL>
<DD><p>This signal is emitted when the state of the <a href="QHttp.html#QHttp(com.trolltech.qt.core.QObject)"><tt>QHttp</tt></a> object changes. The argument <tt>arg__1</tt> is the new state of the connection; it is one of the <a href="QHttp.html#State-enum">State</tt></a> values.</p>
<p>This usually happens when a request is started, but it can also happen when the server closes the connection or when a call to <a href="QHttp.html#close()"><tt>close</tt></a> succeeded.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(int arg__1)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<dl>
<dt><b>See Also:</b></dt>
<dd><a href="QHttp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice)"><tt>get</tt></a>, <a href="QHttp.html#post(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QIODevice)"><tt>post</tt></a>, <a href="QHttp.html#head(java.lang.String)"><tt>head</tt></a>, <a href="QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice)"><tt>request</tt></a>, <a href="QHttp.html#close()"><tt>close</tt></a>, <a href="QHttp.html#state()"><tt>state</tt></a>, <a href="QHttp.html#State-enum">State</tt></a></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="proxyAuthenticationRequired"><!-- --></A><H3>
proxyAuthenticationRequired</H3>
<PRE>
public <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;<A HREF="../../../../com/trolltech/qt/network/QNetworkProxy.html" title="class in com.trolltech.qt.network">QNetworkProxy</A>,<A HREF="../../../../com/trolltech/qt/network/QAuthenticator.html" title="class in com.trolltech.qt.network">QAuthenticator</A>&gt; <B>proxyAuthenticationRequired</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>

<A NAME="authenticationRequired"><!-- --></A><H3>
authenticationRequired</H3>
<PRE>
public <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A>&lt;java.lang.String,java.lang.Integer,<A HREF="../../../../com/trolltech/qt/network/QAuthenticator.html" title="class in com.trolltech.qt.network">QAuthenticator</A>&gt; <B>authenticationRequired</B></PRE>
<DL>
<DL>
</DL>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="QHttp()"><!-- --></A><H3>
QHttp</H3>
<PRE>
public <B>QHttp</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QHttp.html#QHttp(com.trolltech.qt.core.QObject)"><tt>QHttp</tt></a>(0).
<P>
</DL>
<HR>

<A NAME="QHttp(com.trolltech.qt.core.QObject)"><!-- --></A><H3>
QHttp</H3>
<PRE>
public <B>QHttp</B>(<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</PRE>
<DL>
<DD><p>Constructs a <a href="QHttp.html#QHttp(com.trolltech.qt.core.QObject)"><tt>QHttp</tt></a> object. The <tt>parent</tt> parameter is passed on to the <a href="%2E%2E/core/%2E%2E/core/QObject.html#QObject(com.trolltech.qt.core.QObject)"><tt>QObject</tt></a> constructor.</p>
<P>
</DL>
<HR>

<A NAME="QHttp(java.lang.String, int)"><!-- --></A><H3>
QHttp</H3>
<PRE>
public <B>QHttp</B>(java.lang.String&nbsp;hostname,
             int&nbsp;port)</PRE>
<DL>
<DD>This is an overloaded constructor provided for convenince.
<P>
</DL>
<HR>

<A NAME="QHttp(java.lang.String, int, com.trolltech.qt.core.QObject)"><!-- --></A><H3>
QHttp</H3>
<PRE>
public <B>QHttp</B>(java.lang.String&nbsp;hostname,
             int&nbsp;port,
             <A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</PRE>
<DL>
<DD>This is an overloaded constructor provided for convenince.
<P>
</DL>
<HR>

<A NAME="QHttp(java.lang.String, com.trolltech.qt.network.QHttp.ConnectionMode, int)"><!-- --></A><H3>
QHttp</H3>
<PRE>
public <B>QHttp</B>(java.lang.String&nbsp;hostname,
             <A HREF="../../../../com/trolltech/qt/network/QHttp.ConnectionMode.html" title="enum in com.trolltech.qt.network">QHttp.ConnectionMode</A>&nbsp;mode,
             int&nbsp;port)</PRE>
<DL>
<DD>This is an overloaded constructor provided for convenince.
<P>
</DL>
<HR>

<A NAME="QHttp(java.lang.String, com.trolltech.qt.network.QHttp.ConnectionMode, int, com.trolltech.qt.core.QObject)"><!-- --></A><H3>
QHttp</H3>
<PRE>
public <B>QHttp</B>(java.lang.String&nbsp;hostname,
             <A HREF="../../../../com/trolltech/qt/network/QHttp.ConnectionMode.html" title="enum in com.trolltech.qt.network">QHttp.ConnectionMode</A>&nbsp;mode,
             int&nbsp;port,
             <A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</PRE>
<DL>
<DD>Constructs a QHttp object. Subsequent requests are done by
connecting to the server <tt>hostName</tt> on port <tt>port</tt> using the
connection mode <tt>mode</tt>.
<p>
If port is 0, it will use the default port for the <tt>mode</tt> used
(80 for Http and 443 for Https).
<p>
The <tt>parent</tt> parameter is passed on to the QObject constructor.
<P>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="abort()"><!-- --></A><H3>
abort</H3>
<PRE>
public final void <B>abort</B>()</PRE>
<DL>
<DD><p>Aborts the current request and deletes all scheduled requests.</p>
<p>For the current request, the <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a> signal with the <tt>error</tt> argument <tt>true</tt> is emitted. For all other requests that are affected by the <a href="QHttp.html#abort()"><tt>abort</tt></a>, no signals are emitted.</p>
<p>Since this slot also deletes the scheduled requests, there are no requests left and the <a href="QHttp.html#done(boolean)"><tt>done</tt></a> signal is emitted (with the <tt>error</tt> argument <tt>true</tt>).</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QHttp.html#clearPendingRequests()"><tt>clearPendingRequests</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="bytesAvailable()"><!-- --></A><H3>
bytesAvailable</H3>
<PRE>
public final long <B>bytesAvailable</B>()</PRE>
<DL>
<DD><p>Returns the number of bytes that can be read from the response content at the moment.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QHttp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice)"><tt>get</tt></a>, 
<a href="QHttp.html#post(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QIODevice)"><tt>post</tt></a>, 
<a href="QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice)"><tt>request</tt></a>, 
<a href="QHttp.html#readyRead(com.trolltech.qt.network.QHttpResponseHeader)"><tt>readyRead</tt></a>, 
<tt>read</tt>, 
<a href="QHttp.html#readAll()"><tt>readAll</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="clearPendingRequests()"><!-- --></A><H3>
clearPendingRequests</H3>
<PRE>
public final void <B>clearPendingRequests</B>()</PRE>
<DL>
<DD><p>Deletes all pending requests from the list of scheduled requests. This does not affect the request that is being executed. If you want to stop this this as well, use <a href="QHttp.html#abort()"><tt>abort</tt></a>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QHttp.html#hasPendingRequests()"><tt>hasPendingRequests</tt></a>, 
<a href="QHttp.html#abort()"><tt>abort</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="close()"><!-- --></A><H3>
close</H3>
<PRE>
public final int <B>close</B>()</PRE>
<DL>
<DD><p>Closes the connection; this is useful if you have a keep-alive connection and want to close it.</p>
<p>For the requests issued with <a href="QHttp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice)"><tt>get</tt></a>, <a href="QHttp.html#post(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QIODevice)"><tt>post</tt></a> and <a href="QHttp.html#head(java.lang.String)"><tt>head</tt></a>, <a href="QHttp.html#QHttp(com.trolltech.qt.core.QObject)"><tt>QHttp</tt></a> sets the connection to be keep-alive. You can also do this using the header you pass to the <a href="QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice)"><tt>request</tt></a> function. <a href="QHttp.html#QHttp(com.trolltech.qt.core.QObject)"><tt>QHttp</tt></a> only closes the connection to the HTTP server if the response header requires it to do so.</p>
<p>The function does not block and returns immediately. The request is scheduled, and its execution is performed asynchronously. The function returns a unique identifier which is passed by <a href="QHttp.html#requestStarted(int)"><tt>requestStarted</tt></a> and <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a>.</p>
<p>When the request is started the <a href="QHttp.html#requestStarted(int)"><tt>requestStarted</tt></a> signal is emitted. When it is finished the <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a> signal is emitted.</p>
<p>If you want to close the connection immediately, you have to use <a href="QHttp.html#abort()"><tt>abort</tt></a> instead.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QHttp.html#stateChanged(int)"><tt>stateChanged</tt></a>, 
<a href="QHttp.html#abort()"><tt>abort</tt></a>, 
<a href="QHttp.html#requestStarted(int)"><tt>requestStarted</tt></a>, 
<a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a>, 
<a href="QHttp.html#done(boolean)"><tt>done</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="currentDestinationDevice()"><!-- --></A><H3>
currentDestinationDevice</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A> <B>currentDestinationDevice</B>()</PRE>
<DL>
<DD><p>Returns the <a href="%2E%2E/core/QIODevice.html"><tt>QIODevice</tt></a> pointer that is used as to store the data of the HTTP request being executed. If there is no current request or if the request does not store the data to an IO device, this function returns 0.</p>
<p>This function can be used to delete the <a href="%2E%2E/core/QIODevice.html"><tt>QIODevice</tt></a> in the slot connected to the <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a> signal.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QHttp.html#currentSourceDevice()"><tt>currentSourceDevice</tt></a>, 
<a href="QHttp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice)"><tt>get</tt></a>, 
<a href="QHttp.html#post(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QIODevice)"><tt>post</tt></a>, 
<a href="QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice)"><tt>request</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="currentId()"><!-- --></A><H3>
currentId</H3>
<PRE>
public final int <B>currentId</B>()</PRE>
<DL>
<DD><p>Returns the identifier of the HTTP request being executed or 0 if there is no request being executed (i.e&#x2e; they've all finished).</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QHttp.html#currentRequest()"><tt>currentRequest</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="currentRequest()"><!-- --></A><H3>
currentRequest</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/network/QHttpRequestHeader.html" title="class in com.trolltech.qt.network">QHttpRequestHeader</A> <B>currentRequest</B>()</PRE>
<DL>
<DD><p>Returns the request header of the HTTP request being executed. If the request is one issued by setHost() or <a href="QHttp.html#close()"><tt>close</tt></a>, it returns an invalid request header, i.e&#x2e; QHttpRequestHeader::isValid() returns false.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QHttp.html#currentId()"><tt>currentId</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="currentSourceDevice()"><!-- --></A><H3>
currentSourceDevice</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A> <B>currentSourceDevice</B>()</PRE>
<DL>
<DD><p>Returns the <a href="%2E%2E/core/QIODevice.html"><tt>QIODevice</tt></a> pointer that is used as the data source of the HTTP request being executed. If there is no current request or if the request does not use an IO device as the data source, this function returns 0.</p>
<p>This function can be used to delete the <a href="%2E%2E/core/QIODevice.html"><tt>QIODevice</tt></a> in the slot connected to the <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a> signal.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QHttp.html#currentDestinationDevice()"><tt>currentDestinationDevice</tt></a>, 
<a href="QHttp.html#post(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QIODevice)"><tt>post</tt></a>, 
<a href="QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice)"><tt>request</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="error()"><!-- --></A><H3>
error</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/network/QHttp.Error.html" title="enum in com.trolltech.qt.network">QHttp.Error</A> <B>error</B>()</PRE>
<DL>
<DD><p>Returns the last error that occurred. This is useful to find out what happened when receiving a <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a> or a <a href="QHttp.html#done(boolean)"><tt>done</tt></a> signal with the <tt>error</tt> argument <tt>true</tt>.</p>
<p>If you start a new request, the error status is reset to <tt>NoError</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="errorString()"><!-- --></A><H3>
errorString</H3>
<PRE>
public final java.lang.String <B>errorString</B>()</PRE>
<DL>
<DD><p>Returns a human-readable description of the last error that occurred. This is useful to present a error message to the user when receiving a <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a> or a <a href="QHttp.html#done(boolean)"><tt>done</tt></a> signal with the <tt>error</tt> argument <tt>true</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="get(java.lang.String)"><!-- --></A><H3>
get</H3>
<PRE>
public final int <B>get</B>(java.lang.String&nbsp;path)</PRE>
<DL>
<DD><p>Equivalent to <a href="QHttp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice)">get</tt></a>(<tt>path</tt>, 0).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="get(java.lang.String, com.trolltech.qt.core.QIODevice)"><!-- --></A><H3>
get</H3>
<PRE>
public final int <B>get</B>(java.lang.String&nbsp;path,
                     <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;to)</PRE>
<DL>
<DD><p>Sends a get request for <tt>path</tt> to the server set by setHost() or as specified in the constructor.</p>
<p><tt>path</tt> must be an absolute path like <tt>/index.html</tt> or an absolute URI like <tt>http:<span class="comment">//www.trolltech.com/index.html</span></tt>.</p>
<p>If the IO device <tt>to</tt> is 0 the <a href="QHttp.html#readyRead(com.trolltech.qt.network.QHttpResponseHeader)"><tt>readyRead</tt></a> signal is emitted every time new content data is available to read.</p>
<p>If the IO device <tt>to</tt> is not 0, the content data of the response is written directly to the device. Make sure that the <tt>to</tt> pointer is valid for the duration of the operation (it is safe to delete it when the <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a> signal is emitted).</p>
<p>The function does not block and returns immediately. The request is scheduled, and its execution is performed asynchronously. The function returns a unique identifier which is passed by <a href="QHttp.html#requestStarted(int)"><tt>requestStarted</tt></a> and <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a>.</p>
<p>When the request is started the <a href="QHttp.html#requestStarted(int)"><tt>requestStarted</tt></a> signal is emitted. When it is finished the <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a> signal is emitted.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><tt>setHost</tt>, 
<a href="QHttp.html#post(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QIODevice)"><tt>post</tt></a>, 
<a href="QHttp.html#head(java.lang.String)"><tt>head</tt></a>, 
<a href="QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice)"><tt>request</tt></a>, 
<a href="QHttp.html#requestStarted(int)"><tt>requestStarted</tt></a>, 
<a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a>, 
<a href="QHttp.html#done(boolean)"><tt>done</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="hasPendingRequests()"><!-- --></A><H3>
hasPendingRequests</H3>
<PRE>
public final boolean <B>hasPendingRequests</B>()</PRE>
<DL>
<DD><p>Returns true if there are any requests scheduled that have not yet been executed; otherwise returns false.</p>
<p>The request that is being executed is <i>not</i> considered as a scheduled request.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QHttp.html#clearPendingRequests()"><tt>clearPendingRequests</tt></a>, 
<a href="QHttp.html#currentId()"><tt>currentId</tt></a>, 
<a href="QHttp.html#currentRequest()"><tt>currentRequest</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="head(java.lang.String)"><!-- --></A><H3>
head</H3>
<PRE>
public final int <B>head</B>(java.lang.String&nbsp;path)</PRE>
<DL>
<DD><p>Sends a header request for <tt>path</tt> to the server set by setHost() or as specified in the constructor.</p>
<p><tt>path</tt> must be an absolute path like <tt>/index.html</tt> or an absolute URI like <tt>http:<span class="comment">//www.trolltech.com/index.html</span></tt>.</p>
<p>The function does not block and returns immediately. The request is scheduled, and its execution is performed asynchronously. The function returns a unique identifier which is passed by <a href="QHttp.html#requestStarted(int)"><tt>requestStarted</tt></a> and <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a>.</p>
<p>When the request is started the <a href="QHttp.html#requestStarted(int)"><tt>requestStarted</tt></a> signal is emitted. When it is finished the <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a> signal is emitted.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><tt>setHost</tt>, 
<a href="QHttp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice)"><tt>get</tt></a>, 
<a href="QHttp.html#post(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QIODevice)"><tt>post</tt></a>, 
<a href="QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice)"><tt>request</tt></a>, 
<a href="QHttp.html#requestStarted(int)"><tt>requestStarted</tt></a>, 
<a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a>, 
<a href="QHttp.html#done(boolean)"><tt>done</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="ignoreSslErrors()"><!-- --></A><H3>
ignoreSslErrors</H3>
<PRE>
public final void <B>ignoreSslErrors</B>()</PRE>
<DL>
<DD><p>Tells the QSslSocket used for the Http connection to ignore the errors reported in the sslErrors() signal.</p>
<p>Note that this function must be called from within a slot connected to the sslErrors() signal to have any effect.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><tt>QSslSocket</tt>, 
<tt>QSslSocket::sslErrors</tt></DL>
</DD>
</DL>
<HR>

<A NAME="lastResponse()"><!-- --></A><H3>
lastResponse</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/network/QHttpResponseHeader.html" title="class in com.trolltech.qt.network">QHttpResponseHeader</A> <B>lastResponse</B>()</PRE>
<DL>
<DD><p>Returns the received response header of the most recently finished HTTP request. If no response has yet been received QHttpResponseHeader::isValid() will return false.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QHttp.html#currentRequest()"><tt>currentRequest</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="post(java.lang.String, com.trolltech.qt.core.QIODevice)"><!-- --></A><H3>
post</H3>
<PRE>
public final int <B>post</B>(java.lang.String&nbsp;path,
                      <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;data)</PRE>
<DL>
<DD><p>Equivalent to <a href="QHttp.html#post(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QIODevice)">post</tt></a>(<tt>path</tt>, <tt>data</tt>, 0).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="post(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QIODevice)"><!-- --></A><H3>
post</H3>
<PRE>
public final int <B>post</B>(java.lang.String&nbsp;path,
                      <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;data,
                      <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;to)</PRE>
<DL>
<DD><p>Sends a post request for <tt>path</tt> to the server set by setHost() or as specified in the constructor.</p>
<p><tt>path</tt> must be an absolute path like <tt>/index.html</tt> or an absolute URI like <tt>http:<span class="comment">//www.trolltech.com/index.html</span></tt>.</p>
<p>The incoming data comes via the <tt>data</tt> IO device.</p>
<p>If the IO device <tt>to</tt> is 0 the <a href="QHttp.html#readyRead(com.trolltech.qt.network.QHttpResponseHeader)"><tt>readyRead</tt></a> signal is emitted every time new content data is available to read.</p>
<p>If the IO device <tt>to</tt> is not 0, the content data of the response is written directly to the device. Make sure that the <tt>to</tt> pointer is valid for the duration of the operation (it is safe to delete it when the <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a> signal is emitted).</p>
<p>The function does not block and returns immediately. The request is scheduled, and its execution is performed asynchronously. The function returns a unique identifier which is passed by <a href="QHttp.html#requestStarted(int)"><tt>requestStarted</tt></a> and <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a>.</p>
<p>When the request is started the <a href="QHttp.html#requestStarted(int)"><tt>requestStarted</tt></a> signal is emitted. When it is finished the <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a> signal is emitted.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><tt>setHost</tt>, 
<a href="QHttp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice)"><tt>get</tt></a>, 
<a href="QHttp.html#head(java.lang.String)"><tt>head</tt></a>, 
<a href="QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice)"><tt>request</tt></a>, 
<a href="QHttp.html#requestStarted(int)"><tt>requestStarted</tt></a>, 
<a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a>, 
<a href="QHttp.html#done(boolean)"><tt>done</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="post(java.lang.String, com.trolltech.qt.core.QByteArray)"><!-- --></A><H3>
post</H3>
<PRE>
public final int <B>post</B>(java.lang.String&nbsp;path,
                      <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;data)</PRE>
<DL>
<DD><p>Equivalent to <a href="QHttp.html#post(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QIODevice)">post</tt></a>(<tt>path</tt>, <tt>data</tt>, 0).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="post(java.lang.String, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice)"><!-- --></A><H3>
post</H3>
<PRE>
public final int <B>post</B>(java.lang.String&nbsp;path,
                      <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;data,
                      <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;to)</PRE>
<DL>
<DD><p><tt>data</tt> is used as the content data of the HTTP request.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="readAll()"><!-- --></A><H3>
readAll</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A> <B>readAll</B>()</PRE>
<DL>
<DD><p>Reads all the bytes from the response content and returns them.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QHttp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice)"><tt>get</tt></a>, 
<a href="QHttp.html#post(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QIODevice)"><tt>post</tt></a>, 
<a href="QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice)"><tt>request</tt></a>, 
<a href="QHttp.html#readyRead(com.trolltech.qt.network.QHttpResponseHeader)"><tt>readyRead</tt></a>, 
<a href="QHttp.html#bytesAvailable()"><tt>bytesAvailable</tt></a>, 
<tt>read</tt></DL>
</DD>
</DL>
<HR>

<A NAME="request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QIODevice)"><!-- --></A><H3>
request</H3>
<PRE>
public final int <B>request</B>(<A HREF="../../../../com/trolltech/qt/network/QHttpRequestHeader.html" title="class in com.trolltech.qt.network">QHttpRequestHeader</A>&nbsp;header,
                         <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;device)</PRE>
<DL>
<DD><p>Equivalent to <a href="QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice)">request</tt></a>(<tt>header</tt>, <tt>device</tt>, 0).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="request(com.trolltech.qt.network.QHttpRequestHeader)"><!-- --></A><H3>
request</H3>
<PRE>
public final int <B>request</B>(<A HREF="../../../../com/trolltech/qt/network/QHttpRequestHeader.html" title="class in com.trolltech.qt.network">QHttpRequestHeader</A>&nbsp;header)</PRE>
<DL>
<DD><p>Equivalent to <a href="QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice)">request</tt></a>(<tt>header</tt>, 0, 0).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QIODevice)"><!-- --></A><H3>
request</H3>
<PRE>
public final int <B>request</B>(<A HREF="../../../../com/trolltech/qt/network/QHttpRequestHeader.html" title="class in com.trolltech.qt.network">QHttpRequestHeader</A>&nbsp;header,
                         <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;device,
                         <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;to)</PRE>
<DL>
<DD><p>Sends a request to the server set by setHost() or as specified in the constructor. Uses the <tt>header</tt> as the HTTP request header. You are responsible for setting up a header that is appropriate for your request.</p>
<p>The incoming data comes via the <tt>device</tt> IO device.</p>
<p>If the IO device <tt>to</tt> is 0 the <a href="QHttp.html#readyRead(com.trolltech.qt.network.QHttpResponseHeader)"><tt>readyRead</tt></a> signal is emitted every time new content data is available to read.</p>
<p>If the IO device <tt>to</tt> is not 0, the content data of the response is written directly to the device. Make sure that the <tt>to</tt> pointer is valid for the duration of the operation (it is safe to delete it when the <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a> signal is emitted).</p>
<p>The function does not block and returns immediately. The request is scheduled, and its execution is performed asynchronously. The function returns a unique identifier which is passed by <a href="QHttp.html#requestStarted(int)"><tt>requestStarted</tt></a> and <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a>.</p>
<p>When the request is started the <a href="QHttp.html#requestStarted(int)"><tt>requestStarted</tt></a> signal is emitted. When it is finished the <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a> signal is emitted.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><tt>setHost</tt>, 
<a href="QHttp.html#get(java.lang.String, com.trolltech.qt.core.QIODevice)"><tt>get</tt></a>, 
<a href="QHttp.html#post(java.lang.String, com.trolltech.qt.core.QIODevice, com.trolltech.qt.core.QIODevice)"><tt>post</tt></a>, 
<a href="QHttp.html#head(java.lang.String)"><tt>head</tt></a>, 
<a href="QHttp.html#requestStarted(int)"><tt>requestStarted</tt></a>, 
<a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a>, 
<a href="QHttp.html#done(boolean)"><tt>done</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QByteArray)"><!-- --></A><H3>
request</H3>
<PRE>
public final int <B>request</B>(<A HREF="../../../../com/trolltech/qt/network/QHttpRequestHeader.html" title="class in com.trolltech.qt.network">QHttpRequestHeader</A>&nbsp;header,
                         <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;data)</PRE>
<DL>
<DD><p>Equivalent to <a href="QHttp.html#request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice)">request</tt></a>(<tt>header</tt>, <tt>data</tt>, 0).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="request(com.trolltech.qt.network.QHttpRequestHeader, com.trolltech.qt.core.QByteArray, com.trolltech.qt.core.QIODevice)"><!-- --></A><H3>
request</H3>
<PRE>
public final int <B>request</B>(<A HREF="../../../../com/trolltech/qt/network/QHttpRequestHeader.html" title="class in com.trolltech.qt.network">QHttpRequestHeader</A>&nbsp;header,
                         <A HREF="../../../../com/trolltech/qt/core/QByteArray.html" title="class in com.trolltech.qt.core">QByteArray</A>&nbsp;data,
                         <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A>&nbsp;to)</PRE>
<DL>
<DD><p><tt>data</tt> is used as the content data of the HTTP request.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setProxy(com.trolltech.qt.network.QNetworkProxy)"><!-- --></A><H3>
setProxy</H3>
<PRE>
public final int <B>setProxy</B>(<A HREF="../../../../com/trolltech/qt/network/QNetworkProxy.html" title="class in com.trolltech.qt.network">QNetworkProxy</A>&nbsp;proxy)</PRE>
<DL>
<DD><p>Enables HTTP proxy support using the proxy settings from <tt>proxy</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setProxy(java.lang.String, int, java.lang.String)"><!-- --></A><H3>
setProxy</H3>
<PRE>
public final int <B>setProxy</B>(java.lang.String&nbsp;host,
                          int&nbsp;port,
                          java.lang.String&nbsp;username)</PRE>
<DL>
<DD><p>Equivalent to <a href="QHttp.html#setProxy(com.trolltech.qt.network.QNetworkProxy)"><tt>setProxy</tt></a>(<tt>host</tt>, <tt>port</tt>, <tt>username</tt>, QString()).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setProxy(java.lang.String, int)"><!-- --></A><H3>
setProxy</H3>
<PRE>
public final int <B>setProxy</B>(java.lang.String&nbsp;host,
                          int&nbsp;port)</PRE>
<DL>
<DD><p>Equivalent to <a href="QHttp.html#setProxy(com.trolltech.qt.network.QNetworkProxy)"><tt>setProxy</tt></a>(<tt>host</tt>, <tt>port</tt>, QString(), QString()).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setProxy(java.lang.String, int, java.lang.String, java.lang.String)"><!-- --></A><H3>
setProxy</H3>
<PRE>
public final int <B>setProxy</B>(java.lang.String&nbsp;host,
                          int&nbsp;port,
                          java.lang.String&nbsp;username,
                          java.lang.String&nbsp;password)</PRE>
<DL>
<DD><p>Enables HTTP proxy support, using the proxy server <tt>host</tt> on port <tt>port</tt>. <tt>username</tt> and <tt>password</tt> can be provided if the proxy server requires authentication.</p>
<p>Example:</p>
<pre>    void Ticker::getTicks()
    {
      http = new QHttp(this);
      connect(http, SIGNAL(done(bool)), this, SLOT(showPage()));
      http-&gt;setProxy(&quot;proxy.example.com&quot;, 3128);
      http-&gt;setHost(&quot;ticker.example.com&quot;);
      http-&gt;get(&quot;/ticks.asp&quot;);
    }

    void Ticker::showPage()
    {
      display(http-&gt;readAll());
    }</pre>
<p><a href="QHttp.html#QHttp(com.trolltech.qt.core.QObject)"><tt>QHttp</tt></a> supports non-transparent web proxy servers only, such as the Squid Web proxy cache server (from <a href="http://www.squid.org/">http://www.squid.org/</tt></a>). For transparent proxying, such as SOCKS5, use <a href="QNetworkProxy.html"><tt>QNetworkProxy</tt></a> instead.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><tt>QFtp::setProxy</tt></DL>
</DD>
</DL>
<HR>

<A NAME="setSocket(com.trolltech.qt.network.QTcpSocket)"><!-- --></A><H3>
setSocket</H3>
<PRE>
public final int <B>setSocket</B>(<A HREF="../../../../com/trolltech/qt/network/QTcpSocket.html" title="class in com.trolltech.qt.network">QTcpSocket</A>&nbsp;socket)</PRE>
<DL>
<DD><p>Replaces the internal <a href="QTcpSocket.html"><tt>QTcpSocket</tt></a> that <a href="QHttp.html#QHttp(com.trolltech.qt.core.QObject)"><tt>QHttp</tt></a> uses with <tt>socket</tt>. This is useful if you want to use your own custom <a href="QTcpSocket.html"><tt>QTcpSocket</tt></a> subclass instead of the plain <a href="QTcpSocket.html"><tt>QTcpSocket</tt></a> that <a href="QHttp.html#QHttp(com.trolltech.qt.core.QObject)"><tt>QHttp</tt></a> uses by default. <a href="QHttp.html#QHttp(com.trolltech.qt.core.QObject)"><tt>QHttp</tt></a> does not take ownership of the socket, and will not delete <tt>socket</tt> when destroyed.</p>
<p>The function does not block and returns immediately. The request is scheduled, and its execution is performed asynchronously. The function returns a unique identifier which is passed by <a href="QHttp.html#requestStarted(int)"><tt>requestStarted</tt></a> and <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a>.</p>
<p>When the request is started the <a href="QHttp.html#requestStarted(int)"><tt>requestStarted</tt></a> signal is emitted. When it is finished the <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a> signal is emitted.</p>
<p>Note: If <a href="QHttp.html#QHttp(com.trolltech.qt.core.QObject)"><tt>QHttp</tt></a> is used in a non-GUI thread that runs its own event loop, you must move <tt>socket</tt> to that thread before calling <a href="QHttp.html#setSocket(com.trolltech.qt.network.QTcpSocket)"><tt>setSocket</tt></a>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><tt>QObject::moveToThread</tt>, 
<a href="%2E%2E/threads.html">Thread Support in Qt</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setUser(java.lang.String)"><!-- --></A><H3>
setUser</H3>
<PRE>
public final int <B>setUser</B>(java.lang.String&nbsp;username)</PRE>
<DL>
<DD><p>Equivalent to <a href="QHttp.html#setUser(java.lang.String, java.lang.String)"><tt>setUser</tt></a>(<tt>username</tt>, QString()).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setUser(java.lang.String, java.lang.String)"><!-- --></A><H3>
setUser</H3>
<PRE>
public final int <B>setUser</B>(java.lang.String&nbsp;username,
                         java.lang.String&nbsp;password)</PRE>
<DL>
<DD><p>This function sets the user name <tt>username</tt> and password <tt>password</tt> for web pages that require authentication.</p>
<p>The function does not block and returns immediately. The request is scheduled, and its execution is performed asynchronously. The function returns a unique identifier which is passed by <a href="QHttp.html#requestStarted(int)"><tt>requestStarted</tt></a> and <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a>.</p>
<p>When the request is started the <a href="QHttp.html#requestStarted(int)"><tt>requestStarted</tt></a> signal is emitted. When it is finished the <a href="QHttp.html#requestFinished(int, boolean)"><tt>requestFinished</tt></a> signal is emitted.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="state()"><!-- --></A><H3>
state</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/network/QHttp.State.html" title="enum in com.trolltech.qt.network">QHttp.State</A> <B>state</B>()</PRE>
<DL>
<DD><p>Returns the current state of the object. When the state changes, the <a href="QHttp.html#stateChanged(int)"><tt>stateChanged</tt></a> signal is emitted.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QHttp.html#State-enum">State</tt></a>, 
<a href="QHttp.html#stateChanged(int)"><tt>stateChanged</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="fromNativePointer(com.trolltech.qt.QNativePointer)"><!-- --></A><H3>
fromNativePointer</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/network/QHttp.html" title="class in com.trolltech.qt.network">QHttp</A> <B>fromNativePointer</B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</PRE>
<DL>
<DD>This function returns the QHttp instance pointed to by nativePointer
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nativePointer</CODE> - the QNativePointer of which object should be returned.</DL>
</DD>
</DL>
<HR>

<A NAME="read(byte[])"><!-- --></A><H3>
read</H3>
<PRE>
public final int <B>read</B>(byte[]&nbsp;data)</PRE>
<DL>
<DD>Reads from the response content into <tt>data</tt> and
returns the number of bytes read. Returns -1 if an error occurred.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setHost(java.lang.String, com.trolltech.qt.network.QHttp.ConnectionMode, int)"><!-- --></A><H3>
setHost</H3>
<PRE>
public final int <B>setHost</B>(java.lang.String&nbsp;hostname,
                         <A HREF="../../../../com/trolltech/qt/network/QHttp.ConnectionMode.html" title="enum in com.trolltech.qt.network">QHttp.ConnectionMode</A>&nbsp;mode,
                         int&nbsp;port)</PRE>
<DL>
<DD>Sets the HTTP server that is used for requests to <tt>hostname</tt> on
port <tt>port using the connection mode <tt>mode</tt>.
<p>
If port is 0, it will use the default port for the <tt>mode</tt> used
(80 for Http and 443 fopr Https).
<p>
The function does not block and returns immediately. The request
is scheduled, and its execution is performed asynchronously. The
function returns a unique identifier which is passed by
requestStarted() and requestFinished().
<p>
When the request is started the requestStarted() signal is
emitted. When it is finished the requestFinished() signal is
emitted.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setHost(java.lang.String, int)"><!-- --></A><H3>
setHost</H3>
<PRE>
public final int <B>setHost</B>(java.lang.String&nbsp;hostname,
                         int&nbsp;port)</PRE>
<DL>
<DD>Sets the HTTP server that is used for requests to <tt>hostname</tt> on port
<tt>port</tt>.
<p>
The function does not block and returns immediately. The request is scheduled,
and its execution is performed asynchronously. The function returns a unique
identifier which is passed by requestStarted() and requestFinished().
<p>
When the request is started the requestStarted() signal is emitted. When it is
finished the requestFinished() signal is emitted.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/network/QHostInfo.HostInfoError.html" title="enum in com.trolltech.qt.network"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/network/QHttp.ConnectionMode.html" title="enum in com.trolltech.qt.network"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/network/QHttp.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QHttp.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>