.net - How do I spoof a host locally (for testing)? -


is possible spoof host testing?

the site i'm working on set detect requested url , render branded assets. instance, www.aaa.com , www.bbb.com both point web app, detects www.aaa.com requested, loads correct assets brand.

the problem don't know how test this. first instinct add www.aaa.com host file , have resolve 127.0.0.1:64099 (for instance), can't specify ports. how else can go without having publish iis or site running on port 80?

you can add both urls host file. port not need specified there, , still work:

127.0.0.1 www.aaa.com 127.0.0.1 www.bbb.com 

from browser, type:

http://www.aaa.com:64099 http://www.bbb.com:[port num] 

the above assumes sites bound specific host names (www.aaa.com, etc) , port numbers.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -