About cookies from proxy server

#1
OS: Debian 5 lenny x64
Litespeed: Enterprise
PHP: 5.3.5 LSAPI


Hello, so i have problem with litespeed server.
We using some web proxy to receive files from filehost. That file host requires authorization with cookies.

Problem: we cannot receive cookies from proxy server. However it's working on Apache. take a look bellow maybe it will be more understandable...

With Apache everything OK

*HTTP/1.0 200 OK Date: Tue, 19 Apr 2011 12:36:30 GMT Server: Apache
Last-Modified: Tue, 19 Apr 2011 12:36:30 GMT Expires: Tue, 19 Apr 2011
12:36:30 GMT Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Set-Cookie:
user=edcfbf7b6affbd5b2asd2b50ab9dc14f; expires=Mon, 13-Jan-2014 12:36:30
GMT; path=/; domain=.megaupload.com
Vary: Accept-Encoding Content-Type:
text/html; charset=UTF-8 X-Cache: MISS from dvkom.net X-Cache-Lookup: MISS
from dvkom.net:3128 Via: 1.0 dvkom.net (squid/3.0.STABLE8) Proxy-Connection:
close

With LiteSpeed no cookies :(

HTTP/1.0 200 OK Date: Tue, 19 Apr 2011 12:38:09 GMT Server: Apache
Last-Modified: Tue, 19 Apr 2011 12:38:09 GMT Expires: Tue, 19 Apr 2011
12:38:09 GMT Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Vary:
Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache: MISS from
dvkom.net X-Cache-Lookup: MISS from dvkom.net:3128 Via: 1.0
dvk

By the way I'm using RC version of 4.1
 
Last edited:

mistwang

LiteSpeed Staff
#2
Are you using a PHP script to download file from megaupload.com, through a cache proxy?

It must be something different between Apache PHP and litespeed PHP, you should compare the phpinfo() output, make sure all required modules are identical.

It does not have direct relation with LiteSpeed itself.
 
#4
Now in litespeed i have:

'./configure' '--prefix=/usr/local/lsws/lsphp5' '--with-mysqli' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--with-iconv' '--with-mysql' '--with-curl' '--with-mcrypt' '--with-openssl' '--enable-suhosin' '--with-litespeed'
 

webizen

Well-Known Member
#7
Try recompile php in LSWS with the following options (match with Apache's)

'--disable-posix' '--disable-ipv6' '--enable-safe-mode' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-mbstring' '--enable-soap' '--enable-sockets' '--enable-wddx' '--enable-zip' '--with-openssl' '--with-zlib' '--with-curl' '--with-gd' '--with-jpeg-dir' '--with-png-dir' '--with-freetype-dir' '--with-gettext' '--with-mcrypt' '--with-mhash' '--with-xsl' '--with-mysql' '--with-mysqli' '--with-pdo-mysql' '--with-pear=/usr/share/pear' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--with-pspell' '--with-tidy' '--enable-suhosin' '--with-litespeed' '--enable-discard-path'
 

NiteWave

Administrator
#9
please try latest 4.1.1(if you have installed 4.1.1, do Force Reinstall).
it fixed a cookie related issue. if still problem, please open a new thread and give more detail info of the issue.
 

webizen

Well-Known Member
#10
the problem is related to PHP compiled in LSWS not being compatible with the one used by Apache.

To solve the problem, just build matching PHP in LSWS (using the same set of compile options as the one used by Apache).

I have the same problem.

So how the problem was solved?
 
Top