|
| HTTPProtocol (const QByteArray &protocol, const QByteArray &pool, const QByteArray &app) |
|
virtual | ~HTTPProtocol () |
|
virtual void | closeConnection () |
|
virtual void | copy (const KUrl &src, const KUrl &dest, int _permissions, KIO::JobFlags flags) |
|
QString | davError (int code=-1, const QString &url=QString()) |
|
void | davFinished () |
|
void | davGeneric (const KUrl &url, KIO::HTTP_METHOD method, qint64 size=-1) |
|
bool | davHostOk () |
|
void | davLock (const KUrl &url, const QString &scope, const QString &type, const QString &owner) |
|
void | davUnlock (const KUrl &url) |
|
virtual void | del (const KUrl &url, bool _isfile) |
|
virtual void | get (const KUrl &url) |
|
bool | isOffline () |
|
virtual void | listDir (const KUrl &url) |
|
bool | maybeSetRequestUrl (const KUrl &) |
|
virtual void | mimetype (const KUrl &url) |
|
virtual void | mkdir (const KUrl &url, int _permissions) |
|
void | multiGet (const QByteArray &data) |
|
void | post (const KUrl &url, qint64 size=-1) |
|
virtual void | put (const KUrl &url, int _mode, KIO::JobFlags flags) |
|
virtual void | rename (const KUrl &src, const KUrl &dest, KIO::JobFlags flags) |
|
virtual void | reparseConfiguration () |
|
bool | sendErrorPageNotification () |
|
bool | sendHttpError () |
|
virtual void | setHost (const QString &host, quint16 port, const QString &user, const QString &pass) |
|
virtual void | slave_status () |
|
virtual void | special (const QByteArray &data) |
|
virtual void | stat (const KUrl &url) |
|
| QObject (QObject *parent) |
|
| QObject (QObject *parent, const char *name) |
|
virtual | ~QObject () |
|
bool | blockSignals (bool block) |
|
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
|
const QObjectList & | children () const |
|
const char * | className () const |
|
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
|
void | deleteLater () |
|
void | destroyed (QObject *obj) |
|
bool | disconnect (const QObject *receiver, const char *method) |
|
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
|
void | dumpObjectInfo () |
|
void | dumpObjectTree () |
|
QList< QByteArray > | dynamicPropertyNames () const |
|
virtual bool | event (QEvent *e) |
|
virtual bool | eventFilter (QObject *watched, QEvent *event) |
|
T | findChild (const QString &name) const |
|
QList< T > | findChildren (const QRegExp ®Exp) const |
|
QList< T > | findChildren (const QString &name) const |
|
bool | inherits (const char *className) const |
|
void | insertChild (QObject *object) |
|
void | installEventFilter (QObject *filterObj) |
|
bool | isA (const char *className) const |
|
bool | isWidgetType () const |
|
void | killTimer (int id) |
|
virtual const QMetaObject * | metaObject () const |
|
void | moveToThread (QThread *targetThread) |
|
const char * | name () const |
|
const char * | name (const char *defaultName) const |
|
QString | objectName () const |
|
QObject * | parent () const |
|
QVariant | property (const char *name) const |
|
void | removeChild (QObject *object) |
|
void | removeEventFilter (QObject *obj) |
|
void | setName (const char *name) |
|
void | setObjectName (const QString &name) |
|
void | setParent (QObject *parent) |
|
bool | setProperty (const char *name, const QVariant &value) |
|
bool | signalsBlocked () const |
|
int | startTimer (int interval) |
|
QThread * | thread () const |
|
| TCPSlaveBase (const QByteArray &protocol, const QByteArray &poolSocket, const QByteArray &appSocket, bool autoSsl=false) |
|
virtual | ~TCPSlaveBase () |
|
virtual void | chmod (const KUrl &url, int permissions) |
|
virtual void | copy (const KUrl &src, const KUrl &dest, int permissions, JobFlags flags) |
|
virtual void | put (const KUrl &url, int permissions, JobFlags flags) |
|
virtual void | rename (const KUrl &src, const KUrl &dest, JobFlags flags) |
|
virtual void | setModificationTime (const KUrl &url, const QDateTime &mtime) |
|
virtual void | symlink (const QString &target, const KUrl &dest, JobFlags flags) |
|
|
void | addCookies (const QString &url, const QByteArray &cookieHeader) |
|
void | addEncoding (const QString &, QStringList &) |
|
QString | authenticationHeader () |
|
void | cacheFileClose () |
|
bool | cacheFileOpenRead () |
|
bool | cacheFileOpenWrite () |
|
QString | cacheFilePathFromUrl (const KUrl &url) const |
|
QByteArray | cacheFileReadPayload (int maxLength) |
|
bool | cacheFileReadTextHeader1 (const KUrl &desiredUrl) |
|
bool | cacheFileReadTextHeader2 () |
|
void | cacheFileWritePayload (const QByteArray &d) |
|
void | cacheFileWriteTextHeader () |
|
void | cacheParseResponseHeader (const HeaderTokenizer &tokenizer) |
|
void | cachePostData (const QByteArray &) |
|
void | clearPostDataBuffer () |
|
void | clearUnreadBuffer () |
|
int | codeFromResponse (const QString &response) |
|
void | copyPut (const KUrl &src, const KUrl &dest, KIO::JobFlags flags) |
|
void | davParseActiveLocks (const QDomNodeList &activeLocks, uint &lockCount) |
|
void | davParsePropstats (const QDomNodeList &propstats, KIO::UDSEntry &entry) |
|
QString | davProcessLocks () |
|
void | davSetRequest (const QByteArray &requestXML) |
|
bool | davStatDestination () |
|
void | davStatList (const KUrl &url, bool stat=true) |
|
quint16 | defaultPort () const |
|
QString | findCookies (const QString &url) |
|
void | fixupResponseContentEncoding () |
|
void | fixupResponseMimetype () |
|
QString | formatRequestUri () const |
|
void | forwardHttpResponseHeader (bool forwardImmediately=true) |
|
bool | handleAuthenticationHeader (const HeaderTokenizer *tokenizer) |
|
void | httpClose (bool keepAlive) |
|
void | httpCloseConnection () |
|
bool | httpOpenConnection () |
|
bool | httpShouldCloseConnection () |
|
void | parseContentDisposition (const QString &disposition) |
|
bool | parseHeaderFromCache () |
|
void | proceedUntilResponseContent (bool dataInternal=false) |
|
bool | proceedUntilResponseHeader () |
|
bool | readBody (bool dataInternal=false) |
|
size_t | readBuffered (char *buf, size_t size, bool unlimited=true) |
|
int | readChunked () |
|
bool | readDelimitedText (char *buf, int *idx, int end, int numNewlines) |
|
int | readLimited () |
|
bool | readResponseHeader () |
|
int | readUnlimited () |
|
void | resetConnectionSettings () |
|
void | resetResponseParsing () |
|
void | resetSessionSettings () |
|
bool | retrieveAllData () |
|
bool | satisfyRequestFromCache (bool *cacheHasPage) |
|
void | saveAuthenticationData () |
|
bool | sendBody () |
|
void | sendCacheCleanerCommand (const QByteArray &command) |
|
bool | sendCachedBody () |
|
bool | sendQuery () |
|
void | setCacheabilityMetadata (bool cachingAllowed) |
|
void | unread (char *buf, size_t size) |
|
ssize_t | write (const void *buf, size_t nbytes) |
|
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
|
virtual void | childEvent (QChildEvent *event) |
|
virtual void | connectNotify (const char *signal) |
|
virtual void | customEvent (QEvent *event) |
|
virtual void | disconnectNotify (const char *signal) |
|
int | receivers (const char *signal) const |
|
QObject * | sender () const |
|
int | senderSignalIndex () const |
|
virtual void | timerEvent (QTimerEvent *event) |
|
bool | atEnd () const |
|
bool | connectToHost (const QString &protocol, const QString &host, quint16 port) |
|
int | connectToHost (const QString &host, quint16 port, QString *errorString=0) |
|
void | disconnectFromHost () |
|
bool | isAutoSsl () const |
|
bool | isConnected () const |
|
bool | isUsingSsl () const |
|
quint16 | port () const |
|
ssize_t | read (char *data, ssize_t len) |
|
ssize_t | readLine (char *data, ssize_t len) |
|
void | setBlocking (bool b) |
|
QIODevice * | socket () const |
|
bool | startSsl () |
|
virtual void | virtual_hook (int id, void *data) |
|
bool | waitForResponse (int t) |
|
ssize_t | write (const char *data, ssize_t len) |
|
|
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
|
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
|
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
|
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
|
QString | tr (const char *sourceText, const char *disambiguation, int n) |
|
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
|
enum | SslResultDetail |
|
QByteArray | normalizeSignalSlot (const char *signalSlot) |
|
| objectName |
|
Definition at line 56 of file http.h.
bool HTTPProtocol::sendQuery |
( |
| ) |
|
|
protected |
This function is responsible for opening up the connection to the remote HTTP server and sending the header.
If this requires special authentication or other such fun stuff, then it will handle it. This function will NOT receive anything from the server, however. This is in contrast to previous incarnations of 'httpOpen' as this method used to be called.
The basic process now is this:
1) Open up the socket and port 2) Format our request/header 3) Send the header to the remote server 4) Call sendBody() if the HTTP method requires sending body data
Definition at line 2377 of file http.cpp.