I have on server a alias dir called /webdav and other real dir called /setting Password protect from ldapserver alias webdav is password protected on same ldap...
a request to /setting/index.php?lastupdate=1414141414 (unixtime) from firefox parse this file ....
the same request from qt QHttp download the plain text index.php and not the attached sqldump ??? why???
I have spend much time & money to make the Http request with qt in place of libcurl and now the same QHttp give me a big invoice
QHttp download this file as text! firefox no! (get the file sql ...)
<?php
header("Content-Type: text/plain");
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Datum in der Vergangenheit
if(!defined('DIR_SEP')) {
define('DIR_SEP', DIRECTORY_SEPARATOR);
}
print(file_get_contents(dirname(__FILE__).DIR_SEP."CURRENT_OBJEKT_3.sql"));
/* .... update command on server ..... */
?>
<?php
header("Content-Type: text/plain");
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Datum in der Vergangenheit
if(!defined('DIR_SEP')) {
define('DIR_SEP', DIRECTORY_SEPARATOR);
}
print(file_get_contents(dirname(__FILE__).DIR_SEP."CURRENT_OBJEKT_3.sql"));
/* .... update command on server ..... */
?>
To copy to clipboard, switch view to plain text mode
my qt friend.... action
full file http://ciz.ch/svnciz/_STATIC_LIBS_QT...k/gui_wget.cpp
stopButton->setEnabled(true);
http->setHost(urls.host(),80);
http->setUser( current_user , current_pass );
http = new QHttp(this);
stopButton->setEnabled(true);
http->setHost(urls.host(),80);
http->setUser( current_user , current_pass );
To copy to clipboard, switch view to plain text mode
apache 2 setting only webdaw dir ForceType text/plain
Alias /webdav/ /home/webdav/angry/
<Location /webdav>
DirectoryIndex webdavnone.html
AuthType Basic
AuthLDAPAuthoritative On
AuthName "Explorer"
AuthLDAPURL ldap://195.90.211.54:389/ou=webdav,dc=box,dc=ciz,dc=ch?uid?sub
require valid-user
DAV On
### to show php as text on browser ####
ForceType text/plain
SetEnv redirect-carefully
<Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
require user angry
</Limit>
</Location>
Alias /webdav/ /home/webdav/angry/
<Location /webdav>
DirectoryIndex webdavnone.html
AuthType Basic
AuthLDAPAuthoritative On
AuthName "Explorer"
AuthLDAPURL ldap://195.90.211.54:389/ou=webdav,dc=box,dc=ciz,dc=ch?uid?sub
require valid-user
DAV On
### to show php as text on browser ####
ForceType text/plain
SetEnv redirect-carefully
<Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
require user angry
</Limit>
</Location>
To copy to clipboard, switch view to plain text mode
Bookmarks