Article delegate-en/3309 of [1-4112] on the server localhost:7119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A3308@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: CFI with Windows : still a strange problem ...
15 Jun 2006 11:50:38 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project

In message <_A3308@delegate-en.ML_> on 06/15/06(18:56:50) I wrote:
 | |    On a special URL (I didn't have problem with others), the CFI filter is 
 | |not executed when it's the first time access for the browser.
 | |    The URL is "http://https.cartevaloise.valdoise.fr/FrontOffice/". Note 
 | |that I do the SSL conversion, to be able to filter data.
...
 |The problem is in the implementation of removing a parameter value
 |in a Cookie by "httphead.c:delParam()".  The implementation erases
 |the ending CR LF by mistake, breaking the next filed, which is
 |Content-Type in this case as follows:
 |
 |  Set-Cookie: JSESSIONID=...; Secure
 |  Content-Type: text/html
 |
 |  =>
 |
 |  Set-Cookie: JSESSIONID=...; Content-Type: text/html
 |
 |;-)
 |Thus if your CFI is conditional with Content-Type, it does not work
 |in this case.
 |The bug will be fixed as the enclosed patch.

I uploaded DeleGate/9.2.3-pre1 including the patch at
ftp://ftp.delegate.org/pub/DeleGate/alpha/

By the way, It's recommended that using DeleGate itself as a HTTPS
client to reproduce a problem and see what is returned by a SSL
server as this.

  % delegated [PROXY=host:port] FSV=sslway -Fdget https://... [-h] [-o]

For example, the SSL server returns a response message as this:

  % delegated FSV=sslway -Fdget https://cartevaloise.valdoise.fr/FrontOffice/ -h -o
...
  HTTP/1.1 200 OK
  Date: Thu, 15 Jun 2006 11:36:23 GMT
  Server: Apache/2.0.46 (Red Hat)
  Pragma: No-cache
  Cache-Control: no-cache
  Expires: Thu, 01 Jan 1970 01:00:00 CET
  Set-Cookie: JSESSIONID=D00CC8DD4AC1E385F50FD3B4E24A37D0; Path=/FrontOffice; Secure
  Connection: close
  Content-Type: text/html;charset=ISO-8859-1
  ...

Getting via DeleGate/9.2.2 at localhost:9999 running with
MOUNT="http://https.* http://* FSV=sslway":

  % delegated PROXY=localhost:9999 -Fdget http://https.cartevaloise.valdoise.fr/FrontOffice/ -h
  ...
  HTTP/1.1 200 OK
  DeleGate-Ver: 9.2.2 (delay=2)
  Date: Thu, 15 Jun 2006 11:38:36 GMT
  Server: Apache/2.0.46 (Red Hat)
  Pragma: No-cache
  Cache-Control: no-cache
  Set-Cookie: JSESSIONID=555DFB9B74F5407B80B9A488400FDE6E; Path=/FrontOffice; Content-Type: text/html;charset=ISO-8859-1
  Via: 1.1 - (DeleGate/9.2.2)
  Expires: Thu, 01 Jan 1970 01:00:00 CET


Cheers,
Yutaka
--
  D G   Yutaka Sato <pfqcabdyi-mykgh4ye4btw.ml@delegate.org> http://delegate.org/y.sato/
 ( - )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V