Re: Auth, ACL, proxy server mixed up sessions?

2011-07-12 Thread olafrv
Hi,

The problems is due to Microsoft proxy server mixing up plan session
data.

I resolved the problems accesing my CakePHP Web Application only vía
SSL (HTTPS).

Best regards.-

On Jun 30, 9:19 am, olafrv  wrote:
> Hi,
>
> With the (public)http://futbol.olafrv.comCakePHP (1.3) application I
> have a similar problem described here:
>
> http://groups.google.com/group/cake-php/browse_thread/thread/4eb24c59...
>
> And cited here:
>
> "I am having trouble with sessions and a proxy server. My site uses
> Auth and ACL and it works fine in all my testing. However, now someone
> with Microsoft Proxy server is using it and the sessions are getting
> mixed up - when one user logs in they sometimes get another users info
> (i.e. the sessions are confused)."
>
> By the way:
>
> All over the Internet with other proxies and without proxies my app
> works fine.
>
> Any ideas?
>
> Regards.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Auth, ACL, proxy server mixed up sessions?

2011-06-30 Thread olafrv
Hi,

With the (public) http://futbol.olafrv.com CakePHP (1.3) application I
have a similar problem described here:

http://groups.google.com/group/cake-php/browse_thread/thread/4eb24c599fe3f7fd/578ac0b8d3406eff?lnk=gst&q=proxy#578ac0b8d3406eff

And cited here:

"I am having trouble with sessions and a proxy server. My site uses
Auth and ACL and it works fine in all my testing. However, now someone
with Microsoft Proxy server is using it and the sessions are getting
mixed up - when one user logs in they sometimes get another users info
(i.e. the sessions are confused)."

By the way:

All over the Internet with other proxies and without proxies my app
works fine.

Any ideas?

Regards.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: HttpSocket with proxy server

2009-12-15 Thread fr3nch13
I just tried it with cake 1.2.5 stable, and it's still not working
like how gainpaulo was describing above.

Is this indeed the way it's supposed to be working?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: HttpSocket with proxy server

2009-12-15 Thread fr3nch13
I know what gainpaulo post, should be the way it's supposed to work;
however, i was able to get it to work with a GET, but not a POST:


$request_get = array(
'GET http://www.google.com HTTP/1.1',
'Host: www.google.com',
'Connection: close',
'User-Agent: CakePHP'
);
$response = $HttpSocket->request(array(
'host' => "$proxyhost:$proxyport",
'line' => implode("\n", $request_get),
'raw' => implode("\n", $request_get),
));
print_r($response);
print_r($HttpSocket->request);
print_r($HttpSocket->config);

$request_post = array(
'POST http://www.google.com HTTP/1.1',
'q=cakephp',
'Host: www.google.com',
'Connection: close',
'User-Agent: CakePHP'
);
$response = $HttpSocket->request(array(
'host' => "$proxyhost:$proxyport",
'line' => implode("\n", $request_post),
'raw' => implode("\n", $request_post),
));
print_r($response);
print_r($HttpSocket->request);
print_r($HttpSocket->config);

On Dec 15, 10:21 am, fr3nch13  wrote:
> Also, some more information.
> 1. i don't have access to change anything on the squid proxy.
> 2. trying with curl works:
>     curl --proxy [proxyhostname]:[port]http://www.google.com
>
> On Dec 15, 10:18 am, fr3nch13  wrote:
>
> > It doesn't seem to be working.
> > Any help would be greatly appreciated!
>
> > Here is some more information/versions/stats to help:
>
> > Server: RHEL, PHP 5.1.6, cakephp 1.2.3.8166
> > Proxy: Squid/2.5 stable
>
> > This is my test shell:
> > 
> > class TesterShell extends Shell
> > {
>
> >         function httpsockproxy()
> >         {
> >                 $uri = 'http://www.google.com';
>
> >                 if(isset($this->args[0]))
> >                 {
> >                         $uri = $this->args[0];
> >                 }
>
> >                 App::import('Core', 'HttpSocket');
> >                 $HttpSocket = new HttpSocket();
>
> >                 $request = $HttpSocket->request(array(
> >                         'method' => 'POST',
> >                         'host'=>'[proxyhostname]:[port]',
> >                         'uri'=>'http://www.google.com'
> >                         ));
> >                 print_r($request);
> >                 print_r($HttpSocket->config);
> >         }
>
> > }
>
> > the print_r($request) is getting a response from the squid proxy
> > server; however, the proxy is returning it's html error instead of
> > google's homepage:
>
> > ...
> > The requested URL could not be retrieved
> > 
> > 
> > While trying to retrieve the URL:
> > /
> > 
> > The following error was encountered:
> > 
> > 
> > 
> > Invalid URL
> > 
> > 
> > 
>
> > the print_r($HttpSocket->config) output is:
> > Array
> > (
> >     [persistent] =>
> >     [host] => [proxyhostname]:[port]
> >     [protocol] => 6
> >     [port] => 80
> >     [timeout] => 30
> >     [request] => Array
> >         (
> >             [uri] => Array
> >                 (
> >                     [scheme] => http
> >                     [host] =>www.google.com
> >                     [port] => 80
> >                 )
>
> >             [auth] => Array
> >                 (
> >                     [method] => Basic
> >                     [user] =>
> >                     [pass] =>
> >                 )
>
> >             [cookies] => Array
> >                 (
> >                 )
>
> >         )
>
> > )
>
> > On Dec 15, 8:56 am, fr3nch13  wrote:
>
> > > Thanks!
>
> > > I'll try this out and let this group know if it was successf

Re: HttpSocket with proxy server

2009-12-15 Thread fr3nch13
Also, some more information.
1. i don't have access to change anything on the squid proxy.
2. trying with curl works:
curl --proxy [proxyhostname]:[port] http://www.google.com

On Dec 15, 10:18 am, fr3nch13  wrote:
> It doesn't seem to be working.
> Any help would be greatly appreciated!
>
> Here is some more information/versions/stats to help:
>
> Server: RHEL, PHP 5.1.6, cakephp 1.2.3.8166
> Proxy: Squid/2.5 stable
>
> This is my test shell:
> 
> class TesterShell extends Shell
> {
>
>         function httpsockproxy()
>         {
>                 $uri = 'http://www.google.com';
>
>                 if(isset($this->args[0]))
>                 {
>                         $uri = $this->args[0];
>                 }
>
>                 App::import('Core', 'HttpSocket');
>                 $HttpSocket = new HttpSocket();
>
>                 $request = $HttpSocket->request(array(
>                         'method' => 'POST',
>                         'host'=>'[proxyhostname]:[port]',
>                         'uri'=>'http://www.google.com'
>                         ));
>                 print_r($request);
>                 print_r($HttpSocket->config);
>         }
>
> }
>
> the print_r($request) is getting a response from the squid proxy
> server; however, the proxy is returning it's html error instead of
> google's homepage:
>
> ...
> The requested URL could not be retrieved
> 
> 
> While trying to retrieve the URL:
> /
> 
> The following error was encountered:
> 
> 
> 
> Invalid URL
> 
> 
> 
>
> the print_r($HttpSocket->config) output is:
> Array
> (
>     [persistent] =>
>     [host] => [proxyhostname]:[port]
>     [protocol] => 6
>     [port] => 80
>     [timeout] => 30
>     [request] => Array
>         (
>             [uri] => Array
>                 (
>                     [scheme] => http
>                     [host] =>www.google.com
>                     [port] => 80
>                 )
>
>             [auth] => Array
>                 (
>                     [method] => Basic
>                     [user] =>
>                     [pass] =>
>                 )
>
>             [cookies] => Array
>                 (
>                 )
>
>         )
>
> )
>
> On Dec 15, 8:56 am, fr3nch13  wrote:
>
> > Thanks!
>
> > I'll try this out and let this group know if it was successful.
>
> > On Dec 14, 10:04 pm, gianpaulo  wrote:
>
> > > Try this:
>
> > > $HttpSocket = new HttpSocket();
> > > $request = $HttpSocket->request(array(
> > >    'host'=>':',
> > >    'uri'=>'http://api.yahoo.com/'
> > > ));
>
> > > This is how powerful CakePHP is :D
>
> > > On Dec 15, 8:48 am, fr3nch13  wrote:
>
> > > > Has anyone tried using a proxy server with HttpSocket?
>
> > > > I have been looking all over via the normal channels (google, api,
> > > > bakery, book, etc.) to no avail.
>
> > > > If so, could you please point me in the right direction?
>
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: HttpSocket with proxy server

2009-12-15 Thread fr3nch13
It doesn't seem to be working.
Any help would be greatly appreciated!

Here is some more information/versions/stats to help:

Server: RHEL, PHP 5.1.6, cakephp 1.2.3.8166
Proxy: Squid/2.5 stable

This is my test shell:
http://www.google.com';

if(isset($this->args[0]))
{
$uri = $this->args[0];
}

App::import('Core', 'HttpSocket');
$HttpSocket = new HttpSocket();

$request = $HttpSocket->request(array(
'method' => 'POST',
'host'=>'[proxyhostname]:[port]',
'uri'=>'http://www.google.com'
));
print_r($request);
    print_r($HttpSocket->config);
}
}

the print_r($request) is getting a response from the squid proxy
server; however, the proxy is returning it's html error instead of
google's homepage:

...
The requested URL could not be retrieved


While trying to retrieve the URL:
/

The following error was encountered:



Invalid URL




the print_r($HttpSocket->config) output is:
Array
(
[persistent] =>
[host] => [proxyhostname]:[port]
[protocol] => 6
[port] => 80
[timeout] => 30
[request] => Array
(
[uri] => Array
(
[scheme] => http
[host] => www.google.com
[port] => 80
)

[auth] => Array
(
[method] => Basic
[user] =>
[pass] =>
)

[cookies] => Array
(
)

)

)


On Dec 15, 8:56 am, fr3nch13  wrote:
> Thanks!
>
> I'll try this out and let this group know if it was successful.
>
> On Dec 14, 10:04 pm, gianpaulo  wrote:
>
> > Try this:
>
> > $HttpSocket = new HttpSocket();
> > $request = $HttpSocket->request(array(
> >    'host'=>':',
> >    'uri'=>'http://api.yahoo.com/'
> > ));
>
> > This is how powerful CakePHP is :D
>
> > On Dec 15, 8:48 am, fr3nch13  wrote:
>
> > > Has anyone tried using a proxy server with HttpSocket?
>
> > > I have been looking all over via the normal channels (google, api,
> > > bakery, book, etc.) to no avail.
>
> > > If so, could you please point me in the right direction?
>
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: HttpSocket with proxy server

2009-12-15 Thread fr3nch13
Thanks!

I'll try this out and let this group know if it was successful.

On Dec 14, 10:04 pm, gianpaulo  wrote:
> Try this:
>
> $HttpSocket = new HttpSocket();
> $request = $HttpSocket->request(array(
>    'host'=>':',
>    'uri'=>'http://api.yahoo.com/'
> ));
>
> This is how powerful CakePHP is :D
>
> On Dec 15, 8:48 am, fr3nch13  wrote:
>
>
>
> > Has anyone tried using a proxy server with HttpSocket?
>
> > I have been looking all over via the normal channels (google, api,
> > bakery, book, etc.) to no avail.
>
> > If so, could you please point me in the right direction?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: HttpSocket with proxy server

2009-12-14 Thread gianpaulo
Try this:

$HttpSocket = new HttpSocket();
$request = $HttpSocket->request(array(
   'host'=>':',
   'uri'=>'http://api.yahoo.com/'
));

This is how powerful CakePHP is :D



On Dec 15, 8:48 am, fr3nch13  wrote:
> Has anyone tried using a proxy server with HttpSocket?
>
> I have been looking all over via the normal channels (google, api,
> bakery, book, etc.) to no avail.
>
> If so, could you please point me in the right direction?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


HttpSocket with proxy server

2009-12-14 Thread fr3nch13
Has anyone tried using a proxy server with HttpSocket?

I have been looking all over via the normal channels (google, api,
bakery, book, etc.) to no avail.

If so, could you please point me in the right direction?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Proxy server

2009-06-05 Thread Marco

Hi Fred,
I have the same problem.
Let me know if you find a solution.
Marco

On 4 Giu, 05:00, Fred  wrote:
> I am having trouble with sessions and a proxy server. My site uses
> Auth and ACL and it works fine in all my testing. However, now someone
> with Microsoft Proxy server is using it and the sessions are getting
> mixed up - when one user logs in they sometimes get another users info
> (i.e. the sessions are confused). They claim this doesn't happen on
> other web sites and if they change the computers to point through
> separate proxy servers (rather than using their array of proxies) it
> works fine.
>
> Any ideas what could cause this or how to diagnosis this since I
> cannot replicate it?
>
> Thanks.
> Fred

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Proxy server

2009-06-03 Thread Fred

I am having trouble with sessions and a proxy server. My site uses
Auth and ACL and it works fine in all my testing. However, now someone
with Microsoft Proxy server is using it and the sessions are getting
mixed up - when one user logs in they sometimes get another users info
(i.e. the sessions are confused). They claim this doesn't happen on
other web sites and if they change the computers to point through
separate proxy servers (rather than using their array of proxies) it
works fine.

Any ideas what could cause this or how to diagnosis this since I
cannot replicate it?

Thanks.
Fred

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Proxy server problems?

2009-06-01 Thread Fred

Help! I have a site I have built in CakePHP with ACL and Auth.
Everything has worked great for months with hundreds of people logging
in and using the app without a problem. Last week I got a call from a
client who is having problems where when one person logs into the site
they get the last person who logged in from that companies session
(although they cannot do anything beyond see the first page - if they
click they get the login screen). This isn't a consistent problem, but
does happen a fair amount and can be replicated if the client uses a
room with four or five computers in it and accesses the site at the
"same" time. In digging they are using Microsoft Proxy server 2006.
The only reason I can think why this happens is that the session
management isn't working and somehow because of the Proxy server this

My Cake configuration uses php for session management, security set to
low and I just tried changing the checkAgent from true to false (some
post said that fixed a proxy issue for them).

Anyone have any problems with Microsoft Proxy Server and have any
ideas why it would be happening. Any ideas without having someone at
the client test every time I do something to replicate the error?

Thanks.
Fred

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Bad Gateway-Web server received an invalid response while acting as a gateway or proxy server.

2008-08-29 Thread tarun bansal

finally i resolved the issue

his issue was solved for me by:
1. logging into plesk
2. going to domainname.com > Setup
3. look down by Services - PHP Support
4. make sure "run as ISAPI extension" is checked (mine was not)

On Aug 28, 6:14 pm, tarun bansal <[EMAIL PROTECTED]> wrote:
> i had uploaded the website made in cakephp to server in a folder named
> karanlive.whenever i runhttp://demo.itmltd.net/karanlive/   the
> initial page opens quite well but rest of the links doesnt
> works...likehttp://demo.itmltd.net/karanlive/index.php/karanlives/
> orhttp://demo.itmltd.net/karanlive/index.php/asateacher/
> it shoots the error "Bad Gateway-Web server received an invalid
> response while acting as a gateway or proxy server."
>
> i have checked all the paths declared in index.php .
>
> can anybody help?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Bad Gateway-Web server received an invalid response while acting as a gateway or proxy server.

2008-08-28 Thread tarun bansal

i had uploaded the website made in cakephp to server in a folder named
karanlive.whenever i run http://demo.itmltd.net/karanlive/the
initial page opens quite well but rest of the links doesnt
works...like http://demo.itmltd.net/karanlive/index.php/karanlives/
or http://demo.itmltd.net/karanlive/index.php/asateacher/
it shoots the error "Bad Gateway-Web server received an invalid
response while acting as a gateway or proxy server."

i have checked all the paths declared in index.php .

can anybody help?











--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---