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

Help to change server request

4 Answers 28 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
Сергей
Top achievements
Rank 1
Сергей asked on 20 May 2014, 06:28 AM
Help to change server request (RAW):

GET http://server.test.com/olea/? l=4530110&k=70d11cab74190ca973166e3aa9921ce1&n=4530110&e=eForwardActiveLite_v3.2&f=F0003&p=1,0.10000000,0.10000000,2681.08000000 HTTP/1.1
User-Agent: Microsoft Internet Explorer
Host: server.test.com
Pragma: no-cache

It is necessary to replace values 4530110 on 1234567

4 Answers, 1 is accepted

Sort by
0
Сергей
Top achievements
Rank 1
answered on 20 May 2014, 07:21 AM
And an additional question how to change figure 2 for figure 1, in the answer from the server in the field "flags":2

HTTP/1.1 200 OK
Date: Tue, 20 May 2014 07:16:56 GMT
Server: LiteSpeed
Connection: close
X-Powered-By: PHP/5.4.13
Content-Type: application/json; charset=utf-8
cache-control: no-cache
Set-Cookie: session_payload=1e8660af1297f818c5484e16cd5a378a9417ec09%2BvSvMwvgjKKlsWu2BitpNU%2FnQdHpd4xJfy1tceDiAKPl3KTYa6Wzab3rNUzHsGOoms%2FZ2SRzsWv7lCAezQGXN2efaMRh6tilNxj0FHZCUB9p%2FoFzj6tl861cPOA3%2BqGhvSadLSupQTQFZhuhIGztwOzW18c4yMNEO6T7CeWFI5yvk4eFySbWzKrjPDSCeEe8K4jMEkur%2B%2BBHxGrrY5%2FtxbelkTxhN9wNF8do%2B%2BmJ4P0akTIzKWukg%2BxOnU4qpL52fnniGvhH1xuqI5WqhM6pCe7bRmxGsvI1HI2A%2BiXy5ROWRD6uUISQ3SVTZd%2FSeitsKJ8HNsut1k48DXoFI%2FeZMAw%3D%3D; expires=Tue, 20-May-2014 08:16:56 GMT; path=/; httponly
Set-Cookie: ses_session=6e2833abebab02b2ab5d1a0ada5d771fb10245ef%2BI8RAOPeBURHaOXiczy5zCX1tgqJa4MvEmEk96mdH; expires=Tue, 20-May-2014 08:16:56 GMT; path=/; httponly
Content-Length: 74

{"flags":2,"utc":1400570216,"msg1":"You've entered wrong Code!","msg2":""}
0
Eric Lawrence
Telerik team
answered on 20 May 2014, 12:00 PM
Hi,

There are many ways to change traffic with Fiddler. Using the Inspectors to edit a request or response paused at a breakpoint is very easy.

You may want to start by reading this post: http://blogs.telerik.com/fiddler/posts/13-08-20/breakpoints-in-fiddler and watching this video: https://www.youtube.com/watch?v=gujBKFGwjd4

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
Сергей
Top achievements
Rank 1
answered on 20 May 2014, 01:44 PM
Break points I think here are inappropriate.
The task - automatic substitution of some values transferred to the server and in data obtained from the server.
As I understand manual records in "Customize Rules" are necessary.
Which and in what place?
0
Eric Lawrence
Telerik team
answered on 22 May 2014, 06:29 PM
Hello,

You haven't explained why using Breakpoints won't work for you, but yes, you can use FiddlerScript to rewrite requests and responses. Requests are modified in the OnBeforeRequest function and responses are modified in OnBeforeResponse. 

http://docs.telerik.com/fiddler/knowledgebase/fiddlerscript/modifyrequestorresponse

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
Сергей
Top achievements
Rank 1
Answers by
Сергей
Top achievements
Rank 1
Eric Lawrence
Telerik team
Share this question
or