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

Autoresponder and regex

2 Answers 204 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 31 Oct 2014, 04:10 PM
Hello,

I'm using Fiddler 4.4.9.6 and I'm trying to make the autoresponder use a file as a response with a regex rule.
The regex part is ok but it sends back a 403 error when using full URLs and local files.
The only way I can make it work is by using a relative URL and that's because it automatically adds a forward slash (/) to the response.

So:

- http://www.example.com doesn't work
- C:/mystuff/stuff.json doesn't work
- relativeurl/stuff.json does work

Any ideas?
Thanks!

2 Answers, 1 is accepted

Sort by
0
Eric Lawrence
Telerik team
answered on 31 Oct 2014, 08:54 PM
Hello, Thomas--

Can you please provide the full rule (both the "If request matches..." and "then respond with" columns)? You can copy these by selecting the rule in the list and hitting CTRL+C to copy them to your clipboard.

My guess (based only on past errors) is that you've written a regular expression that does not fully encompass the URL, and thus the resulting filename is invalid.

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
Thomas
Top achievements
Rank 1
answered on 03 Nov 2014, 03:56 PM
Huh, you're right, that was it!

I had just specified :

urlmethod.*type=param$

instead of

.*urlmethod.*type=param$

Thanks :)
Tags
Fiddler Classic
Asked by
Thomas
Top achievements
Rank 1
Answers by
Eric Lawrence
Telerik team
Thomas
Top achievements
Rank 1
Share this question
or