Sunday, 15 August 2010

debugging - How to trace a webrequest created in code sent to a local address -



debugging - How to trace a webrequest created in code sent to a local address -

this issue occurring in c#, .net 4.0 environment. tried using fiddler doesn't show up. after searching around, suggested solution alter address of request localhost machine-name.

this worked on local machine: after changing phone call localhost my-machine, fiddler picked up. real issue on client's staging environment production code. can not modify code there take change.

note, far know, on client site should making request out host name , not localhost anyways.

also, on local machine nail localhost in browser, , seems pick fine. not request built in code. why that?

thanks!

it sounds you're saying: "this works fine on client's pc not on dev pc when using localhost." correct?

in ie9, changed wininet enable fiddler capture loopback traffic browser. sadly, .net framework hasn't yet adopted back upwards <-loopback> token, means traffic sent 127.0.0.1 or localhost bypasses proxy.

debugging c#-4.0 httpwebrequest client-server fiddler

No comments:

Post a Comment