using fiddlercore i want to use some info from request and add some info to request and create a new request and send it to a server.
How can I send?
Hi
Now I am running with
var oJSON = Newtonsoft.Json.JsonConvert.DeserializeObject(oS.GetRequestBodyAsString());
var t = oJSON.JSONObject["target"]
........
But sometimes the oS.GetRequestBodyAsString() is not a valid json string.
Is there any way to check the oJSON status to see if the job is done without errors?
For example,
var oJSON = Newtonsoft.Json.JsonConvert.DeserializeObject(oS.GetRequestBodyAsString());
if (!oJSON.isSuccessful) {
// process error and return
}
I have a Windows service that is sending encrypted HTTP traffic. I have set up Fiddler to decrypt HTTPS traffic. I have logged in as the user whom this service is set to log in as. Though the service is creating traffic, I'm getting no traffic in Fiddler.
This seems to be happening on Windows 2016 servers. I have a Windows 2008 server on which the same service is running and I'm getting traffic just fine. Does anyone know what might be the issue?
In CustomRules.js
static function OnBeforeResponse(oSession: Session) {
var responseStringOriginal = oSession.GetResponseBodyAsString();
var responseJSON = Fiddler.WebFormats.JSON.JsonDecode(responseStringOriginal);
var responseJSONObject = responseJSON.JSONObject;
}
There is an array in response responseJSONObject , like
[
{
"id": "6661370502453447944"
},
{
"id": "333"
},
...
]
Question 1: How can I get this array's length or traversal this array?
Question 2: How can I create an array using for loop and save the new array to the responseJSON.JSONObject?
Question 3: Where can I find any documentation about this object "Fiddler.WebFormats.JSON", like what method and properties it have.
I tried several ways but nothing works and I can't using the JSON.parse() function in this script.
I also google for the documents of this object (Fiddler.WebFormats.JSON) and found nothing.
Thank you very much and welcome reply any infomation.
Hello guys, when I tried connect to google.com from I got this Certificate Error:
<
p
>Session #3: The server (152.199.19.161) presented a certificate that did not validate, because it was issued to a different host.</
p
><
p
>SANs: *.vo.msecnd.net, *.adn.azureedge.net, *.ads2.msads.net, *.aspnetcdn.com, *.azurecomcdn.net, *.azureedge.net, *.azureedge-test.net, *.cdn.skype.com, *.cdn.skype.net, *.cmsresources.windowsphone.com, *.cmsresources.windowsphone-int.com, *.dev.skype.com, *.fms.azureedge.net, *.microsoft-sbs-domains.com, *.secure.skypeassets.com, *.secure.skypeassets.net, *.wac.azureedge.net, *.wpc.azureedge.net, *.ec.azureedge.net, *.wpc.ec.azureedge.net, *.wac.ec.azureedge.net, *.adn.ec.azureedge.net, *.fms.ec.azureedge.net, ajax.microsoft.com, cdnads.msads.net, cdn-resources.windowsphone.com, cdn-resources-beta.windowsphone.com, ecnads1.msn.com, iecvlist.microsoft.com, images-cms-pn.windowsphone-int.com, images-cms-tst.windowsphone-int.com, lumiahelptipscdn.microsoft.com, lumiahelptipscdnqa.microsoft.com, lumiahelptipsmscdn.microsoft.com, lumiahelptipsmscdnqa.microsoft.com, montage.msn.com, mscrl.microsoft.com, r20swj13mr.microsoft.com, *.streaming.mediaservices.windows.net, *.origin.mediaservices.windows.net, download.sysinternals.com, amp.azure.net, rt.ms-studiosmedia.com, gtm.ms-studiosmedia.com, *.aisvc.visualstudio.com, *.cdn.powerbi.com, dist.asp.net, embed.powerbi.com, msitembed.powerbi.com, dxtembed.powerbi.com, *.cdn.powerappscdn.net, downloads.subscriptionsint.tfsallin.net, download.my.visualstudio.com, cdn.vsassets.io, cdnppe.vsassets.io, stream.microsoft.com, datafactory.azure.com, *.cortanaanalytics.com, do.skype.com, software-download.office.microsoft.com, software-download.microsoft.com, prss.centralvalidation.com, *.gallerycdn.vsassets.io, *.gallerycdnppe.vsassets.io, global.asazure.windows.net, download.learningdownloadcenter.microsoft.com, www.videobreakdown.com, www.breakdown.me, *.gallerycdntest.vsassets.io, agavecdn.o365weve-dev.com, agavecdn.o365weve-ppe.com, agavecdn.o365weve.com, download.visualstudio.com, *.Applicationinsights.net, *.Applicationinsights.io, *.Applicationinsights.microsoft.com, *.sfbassets.com, *.sfbassets.net, download.mono-project.com, *.streaming.media-test.windows-int.net, *.origin.mediaservices.windows-int.net, *.mp.microsoft.com, download.visualstudio.microsoft.com, software-download.coem.microsoft.com, cdn.wallet.microsoft-ppe.com, cdn.wallet.microsoft.com, vi.microsoft.com, *.nuget.org, *.nugettest.org, cdn.botframework.com, *.streaming.media.azure.net, *.streaming.media.azure-test.net, natick.research.microsoft.com, quotecenter.microsoft.com, quotecenter-ppe.microsoft.com, cdn.cloudappsecurity.com, *.yammer.com, *.videoindexer.ai, *.api.videoindexer.ai<
br
>SUBJECT: CN=*.vo.msecnd.net</
p
>
I don't know why because I add Trust Root Certificate, do you have some solve this error?
Thanks to the amazing FiddlerCore and quick replies on this forum.
I have developed a simple C# solution that uses FiddlerCore to mock the HTTPS requests of an application(.exe) which invokes an URL and responds with json data. I have made the changes in the BeforeRequest() and BeforeResponse() as below.
* BeforeRequest(oSession)
{
oSession.bBufferResponse = true;
}
* BeforeResponse(oSession){ session.utilSetResponseBody("myjson.json); }
I could see from the log that response has been modified but the response is not being sent back to client [my application is timing out].
I have checked with other URL's which are working as expected with Fiddler tool Autoresponder, but not working through my code.
Any help is highly appreciated..
Thanks,
Malleswari