且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

How to determine whether your http request starting from localhost is correctly forwarded

更新时间:2022-09-06 07:52:24

Requirement: you are using WebIDE to run your application. The metadata request is sent by WebUDE via the following url:How to determine whether your http request starting from localhost is correctly forwardedAnd you would like to know exactly which target application server this request has been forwarded to.


Approach1

you can identify the target application server name GM6 via the neo-app.json:


How to determine whether your http request starting from localhost is correctly forwardedSet the breakpoint on the method below in GM6 and then re-launch your application.

If the breakpoint is triggered, it could be confirmed that your http request is correctly forwarded to GM6:


How to determine whether your http request starting from localhost is correctly forwarded

Approach2: ( only works for Eclipse project )

Switch on development mode by modifying web.xml:How to determine whether your http request starting from localhost is correctly forwardedThen in http response header you could easily find which application server the http request has been forwarded to:How to determine whether your http request starting from localhost is correctly forwardedHow to determine whether your http request starting from localhost is correctly forwardedHow to determine whether your http request starting from localhost is correctly forwardedHow to determine whether your http request starting from localhost is correctly forwardedHow to determine whether your http request starting from localhost is correctly forwardedHow to determine whether your http request starting from localhost is correctly forwarded