This is a migrated thread and some comments may be shown as answers.

Append a string to search query after clicking submit/search button

3 Answers 56 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
nasekt
Top achievements
Rank 1
nasekt asked on 23 Sep 2014, 03:48 AM
In this case, Let's take Google Search as example:

if (oSession.uriContains("&q="))  {
var str = oSession.fullUrl;
var sAppend = "test1+test2+test3";
if (!oSession.uriContains(sAppend))
{
oSession.fullUrl = str.replace( "&q=","&q="+sAppend);
}
}

For those who are confused, It says, If &q= is present in the URI, replace/append &q= with &q=test1+test2+test3

Problem: It appends test1+test2+test3 instantly, when it sees &q= in the URL.

Basically, how do I make it wait until I click the submit/search button

Thank you.

3 Answers, 1 is accepted

Sort by
0
Eric Lawrence
Telerik team
answered on 23 Sep 2014, 02:22 PM
Fiddler is a proxy; it sees the traffic that crosses the network. Fiddler doesn't know anything about "submit" buttons-- if the button results in different network traffic, Fiddler will see that. If it doesn't change the network traffic, then Fiddler will not see it.

Regards,
Eric Lawrence
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
nasekt
Top achievements
Rank 1
answered on 23 Sep 2014, 04:14 PM
Can I inject  Javascript code  object.onclick=function(){myScript}; into google's  HTML page ?
0
Eric Lawrence
Telerik team
answered on 23 Sep 2014, 05:53 PM
You can inject anything you want into the page.

Regards,
Eric Lawrence
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Fiddler Classic
Asked by
nasekt
Top achievements
Rank 1
Answers by
Eric Lawrence
Telerik team
nasekt
Top achievements
Rank 1
Share this question
or