AutoResponder rewrites URLs instead of returning file contents

4 posts, 0 answers
  1. Ilya
    Ilya avatar
    4 posts
    Member since:
    Sep 2011

    Posted 25 Dec 2014 Link to this post

    Rule Config

    regex:(?insx)\/0Pl5sssO4/.+\.js$ #Versafe.js
    C:\Users\chernyakov\Desktop\versafe\static.js

    I would expect Autoresponder to respond with file contents. Instead, it rewrites my request 



    GET http://xx.xx.43.176C:\Users\chernyakov\Desktop\script\static.js/ HTTP/1.1
    Host: Xx.xx.43.176C:\Users\chernyakov\Desktop\script\static.js
    Proxy-Connection: keep-alive
    Pragma: no-cache
    Cache-Control: no-cache
    Accept: */*
  2. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 26 Dec 2014 Link to this post

    Your regular expression isn't complete; update it to match the entire string, as follows:

     regex:(?insx)^.*\/0Pl5sssO4/.+\.js$ #Versafe.js
    C:\Users\chernyakov\Desktop\versafe\static.js

    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.

     
  3. Ilya
    Ilya avatar
    4 posts
    Member since:
    Sep 2011

    Posted 06 Jan 2015 in reply to Eric Lawrence Link to this post

    I have noticesd, thanks, but that is not the issue, right ? 
  4. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 06 Jan 2015 Link to this post

    If you fail to specify a regular expression that completely encapsulates the URL, you will encounter the behavior you describe.

    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