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

Created by Jerry Wang, last modified on Mar 09, 2015

Requirement: you are using WebIDE to run your application. The metadata request is sent by WebUDE via the following url:
clipboard1
And 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:
clipboard2
Set 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:
clipboard3

Approach2: ( only works for Eclipse project )

Switch on development mode by modifying web.xml:
clipboard4
Then in http response header you could easily find which application server the http request has been forwarded to:
clipboard5

Approach3

change the destination file name on purpose, for example from GM6 to GM61:
clipboard6

And then it is expected to see the error message that the missing destination configuration file for GM6:
clipboard7
And debug when, where and how the destination file is used:

clipboard8
clipboard9
When you have changed the application server host name,
clipboard11

the error changes:
clipboard12

猜你喜欢

转载自blog.csdn.net/i042416/article/details/93304098
今日推荐