Issue with the MaxQ proxy

View: New views
6 Messages — Rating Filter:   Alert me  

Issue with the MaxQ proxy

by corpaul :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi,
 
I am encountering the following issue with the MaxQ HTTP proxy:
When I visit some websites (e.g. www.google.com and www.postbank.nl )
I receive an empty response.
I believe it may have something to do with redirects but not sure.
 
Is this an issue or am I doing something wrong?
 
Best regards,
 
Cor-Paul Bezemer



Plan je evenement, nodig mensen uit en deel je foto's met Windows Live Events

Re: Issue with the MaxQ proxy

by Bruno Dillenseger-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Cor-Paul Bezemer wrote:
Hi,
 
I am encountering the following issue with the MaxQ HTTP proxy:
When I visit some websites (e.g. www.google.com and www.postbank.nl )
I receive an empty response.
I believe it may have something to do with redirects but not sure.
 
Is this an issue or am I doing something wrong?
Hello,

Unfortunately, I don't know... I'm working behind a proxy and I don't know if I can configure a proxy for maxq so that I can get some external URLs...

However, if you have direct connection to the internet and some web sites work and others don't, you have probably found the problem: redirects.
First of all, MaxQ is based on HttpClient (don't know exactly which version), and HttpClient is not able to handle all kinds of redirections (see http://hc.apache.org/httpclient-3.x/redirects.html). Moreover, after a quick overview on MaxQ sources, it seems that redirects are merely disabled anyway.

www.google.com returns a 302 redirect response actually. Does anyone knows the reason why redirects are not enabled in MaxQ?

It happens that we are currently facing this issue in the CLIF project also (also based on HttpClient). So maybe I could help if I find a solution for CLIF.

Best regards,
-- Bruno.
Votre signature email Orange (en France)

Re: Issue with the MaxQ proxy

by Bruno Dillenseger-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Bruno Dillenseger wrote:
Cor-Paul Bezemer wrote:
Hi,
 
I am encountering the following issue with the MaxQ HTTP proxy:
When I visit some websites (e.g. www.google.com and www.postbank.nl )
I receive an empty response.
I believe it may have something to do with redirects but not sure.
 
Is this an issue or am I doing something wrong?
Hello,

Unfortunately, I don't know... I'm working behind a proxy and I don't know if I can configure a proxy for maxq so that I can get some external URLs...

However, if you have direct connection to the internet and some web sites work and others don't, you have probably found the problem: redirects.
First of all, MaxQ is based on HttpClient (don't know exactly which version), and HttpClient is not able to handle all kinds of redirections (see http://hc.apache.org/httpclient-3.x/redirects.html). Moreover, after a quick overview on MaxQ sources, it seems that redirects are merely disabled anyway.

www.google.com returns a 302 redirect response actually. Does anyone knows the reason why redirects are not enabled in MaxQ?
Hello Cor-Paul,

Thinking again about this issue, MaxQ actually should not follow redirects: it shall (and it does) forward the 302 response to the browser and it is up to the browser to follow the redirect.
I've tested this with a local HTTP server, with a 302 redirect configured on it. It works like a charm with MaxQ. So, I end up in thinking you don't have a direct access to Internet, but through a proxy. In this case, you must configure maxq to set a proxy: uncomment and set these Java properties in file conf/maxq.properties:
remote.proxy.host=proxy
remote.proxy.port=8080

I've tried with both URLs you provided and it perfectly works.

Note: this message is cross-posted to the CLIF mailing list on purpose since this problem might be experienced by some CLIF users wanting to record and replay HTTP sessions through a proxy.

Regards,
-- Bruno.
Votre signature email Orange (en France)

Bruno Dillenseger
ft/nsm/rd/maps/mep/mse
distributed systems research engineer
tél. +33 4 76 76 41 46
bruno.dillenseger@...




RE: Issue with the MaxQ proxy

by corpaul :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Bruno Dillenseger wrote:

 
Hello Cor-Paul,

Thinking again about this issue, MaxQ actually should not follow redirects: it shall (and it does) forward the 302 response to the browser and it is up to the browser to follow the redirect.
I've tested this with a local HTTP server, with a 302 redirect configured on it. It works like a charm with MaxQ. So, I end up in thinking you don't have a direct access to Internet, but through a proxy. In this case, you must configure maxq to set a proxy: uncomment and set these Java properties in file conf/maxq.properties:
remote.proxy.host=proxy
remote.proxy.port=8080

I've tried with both URLs you provided and it perfectly works.

Note: this message is cross-posted to the CLIF mailing list on purpose since this problem might be experienced by some CLIF users wanting to record and replay HTTP sessions through a proxy.

Regards,
-- Bruno.

Bruno Dillenseger
ft/nsm/rd/maps/mep/mse
distributed systems research engineer
tél. +33 4 76 76 41 46
bruno.dillenseger@...

 

Dear Bruno,

 

I have tried other proxies and some of them have the same issues, while others ('larger' ones like WebScarab, Fiddler) do not. This makes me believe that the error

is in the http proxy and not on my side. Therefore I think it's strange that you don't have a problem visiting those sites.

 

I know for sure that I am not behind a proxy because none of my other apps require me to use a proxy.

 

Regards,

 

Cor-Paul



Chat met al je vrienden. Nodig ze nu uit voor Messenger!


orange_logo.gif (1K) Download Attachment
ampersand.gif (1K) Download Attachment

Re: Issue with the MaxQ proxy

by Bruno Dillenseger-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Cor-Paul Bezemer wrote:

Bruno Dillenseger wrote:

 
Hello Cor-Paul,

Thinking again about this issue, MaxQ actually should not follow redirects: it shall (and it does) forward the 302 response to the browser and it is up to the browser to follow the redirect.
I've tested this with a local HTTP server, with a 302 redirect configured on it. It works like a charm with MaxQ. So, I end up in thinking you don't have a direct access to Internet, but through a proxy. In this case, you must configure maxq to set a proxy: uncomment and set these Java properties in file conf/maxq.properties:
remote.proxy.host=proxy
remote.proxy.port=8080

I've tried with both URLs you provided and it perfectly works.

Note: this message is cross-posted to the CLIF mailing list on purpose since this problem might be experienced by some CLIF users wanting to record and replay HTTP sessions through a proxy.

Dear Bruno,

 

I have tried other proxies and some of them have the same issues, while others ('larger' ones like WebScarab, Fiddler) do not. This makes me believe that the error

is in the http proxy and not on my side. Therefore I think it's strange that you don't have a problem visiting those sites.

 

I know for sure that I am not behind a proxy because none of my other apps require me to use a proxy.

So, I don't know. Then, probably it is a matter of compatibility with the web browser? FYI, I'm using Firefox version 3 (on Linux).

Regards,
-- Bruno.
Votre signature email Orange (en France)

RE: Issue with the MaxQ proxy

by corpaul :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
I have the problem with FF 3 and IE 7 on Win XP.
 
Cor-Paul




Date: Thu, 11 Dec 2008 16:30:42 +0100
From: bruno.dillenseger@...
To: koningcor@...
CC: issues@...
Subject: Re: [maxq-issues] Issue with the MaxQ proxy

Cor-Paul Bezemer wrote:

Bruno Dillenseger wrote:

 
Hello Cor-Paul,

Thinking again about this issue, MaxQ actually should not follow redirects: it shall (and it does) forward the 302 response to the browser and it is up to the browser to follow the redirect.
I've tested this with a local HTTP server, with a 302 redirect configured on it. It works like a charm with MaxQ. So, I end up in thinking you don't have a direct access to Internet, but through a proxy. In this case, you must configure maxq to set a proxy: uncomment and set these Java properties in file conf/maxq.properties:
remote.proxy.host=proxy
remote.proxy.port=8080

I've tried with both URLs you provided and it perfectly works.

Note: this message is cross-posted to the CLIF mailing list on purpose since this problem might be experienced by some CLIF users wanting to record and replay HTTP sessions through a proxy.

Dear Bruno,

 

I have tried other proxies and some of them have the same issues, while others ('larger' ones like WebScarab, Fiddler) do not. This makes me believe that the error

is in the http proxy and not on my side. Therefore I think it's strange that you don't have a problem visiting those sites.

 

I know for sure that I am not behind a proxy because none of my other apps require me to use a proxy.

So, I don't know. Then, probably it is a matter of compatibility with the web browser? FYI, I'm using Firefox version 3 (on Linux).

Regards,
-- Bruno.



Je foto's bewerken en in elkaar laten overlopen met Windows Live Photo Gallery