Help to change server request

5 posts, 0 answers
  1. Сергей
    Сергей avatar
    3 posts
    Member since:
    May 2014

    Posted 20 May 2014 Link to this post

    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
  2. Сергей
    Сергей avatar
    3 posts
    Member since:
    May 2014

    Posted 20 May 2014 in reply to Сергей Link to this post

    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":""}
  3. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 20 May 2014 Link to this post

    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.

     
  4. Сергей
    Сергей avatar
    3 posts
    Member since:
    May 2014

    Posted 20 May 2014 in reply to Eric Lawrence Link to this post

    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?
  5. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 22 May 2014 Link to this post

    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.

     
Back to Top