i want to make fiddler auto responder with c# or vb.net or python console
i have c# application get authentication from this url https://pastebin.com/raw/gFUrjSW3 and i want to change the string in the url (123456) to a specific string (112233445566) and i create this c# script but nothing happened
{
response = null;
try
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://pastebin.com/raw/gFUrjSW3");
request.Headers.Add("token", @"eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE5Mjc4Mzk1MTksImlzcyI6IjQxMmZlNmNkLTBkZDktNDhmMi05Zjk3LTkxMzVkNTllMzA4ZSJ9.UJcK78RYkAJXZcqOJ4AnBS7Uoz7Uh8G2yF_aei48wWM");
request.ContentType = "application/json; charset=utf-8";
request.Method = "POST";
request.ServicePoint.Expect100Continue = false;
string body = @"{"112233445566"}";
byte[] postBytes = System.Text.Encoding.UTF8.GetBytes(body);
request.ContentLength = postBytes.Length;
Stream stream = request.GetRequestStream();
stream.Write(postBytes, 0, postBytes.Length);
stream.Close();
response = (HttpWebResponse)request.GetResponse();
}
catch (WebException e)
{
if (e.Status == WebExceptionStatus.ProtocolError) response = (HttpWebResponse)e.Response;
else return false;
}
catch (Exception)
{
if(response != null) response.Close();
return false;
}
return true;
}