I want to make a c# console application for intercepting the https connection to a server and return a local xml file as responcemy code is Fiddler.FiddlerApplication.BeforeRequest += delegate(Fiddler.Session oS)
{
if (oS.url.Contains("test.com"))
{
oS.bBufferResponse = true;
oS.utilCreateResponseAndBypassServer();
}
};
Fiddler.FiddlerApplication.BeforeResponse += delegate(Fiddler.Session oS)
{
oS.utilDecodeResponse();
oS.LoadResponseFromFile("file.xml");
};
But it doesn't seem to work, I get connection error. Any ideas?
{
if (oS.url.Contains("test.com"))
{
oS.bBufferResponse = true;
oS.utilCreateResponseAndBypassServer();
}
};
Fiddler.FiddlerApplication.BeforeResponse += delegate(Fiddler.Session oS)
{
oS.utilDecodeResponse();
oS.LoadResponseFromFile("file.xml");
};
But it doesn't seem to work, I get connection error. Any ideas?