Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] Tracking Ajax requests/responses with Jetty ProxyServlet

Hi Simone, thanks for your answer.

I amusing it as an embedded server. I used the standard code given in the documentation.

I have context.addservlet(my proxy, "/*", ...

So I was thinking that all kind of request would be intercepted by this servlet.

What should I define then?

Thanks again

Gilles

Le jeudi 21 août 2014, Simone Bordet <sbordet@xxxxxxxxxxx> a écrit :
Hi,

On Wed, Aug 20, 2014 at 10:07 PM, Gilles Ducret <gilles.ducret@xxxxxxxxx> wrote:
> Hi,
>
> I have created a ProxyServlet to intercept the Ajax JSON request of a third
> party tool we have acquired in the company.
> My objective is to modify some of the response on the fly.
>
> I hav a first issue, that is I can't intercept the json calls, can't track
> them. They go through the proxy (when the proxy is done the browser displays
> an error message), but I see no traces of them (neither in service, nor in
> onresponsecontent, nor in onresponsesuccess).

Then you servlet mapping does not match the URI of the ajax call ?

--
Simone Bordet
----
http://cometd.org
http://webtide.com
http://intalio.com
Developer advice, training, services and support
from the Jetty & CometD experts.
Intalio, the modern way to build business applications.
_______________________________________________
jetty-dev mailing list
jetty-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev

Back to the top