SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Senior Member
    Join Date
    Jul 2007
    Location
    Amman, Jordan
    Posts
    281
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Issue with HTTP Redirects

    I always found a workaround when dealing with HTTP Redirects, however this time i am completely stuck.

    This is what i have:
    Go to a signup server:
    Https://signup.qa.xxx.com/signup/index.aspx

    Source Returned
    <html><head><title>Object moved</title></head><body>
    <h2>Object moved to <a href="/SignupVersions/RedirectMboxPage.aspx">here</a>.</h2>
    </body></html>

    This will redirect to the following page (This call was not recorded by VUgen, i captured it with fiddler):
    Https://signup.qa.xxx.com/Signup/RedirectMBoxPage.aspx

    Source Returned:
    </title>
    <script language="JavaScript" type="text/javascript" src="/include/mbox.js"></script>


    <script type="text/javascript">
    function PageLoaded()
    {
    //Redirect offer should be executed before the page load is complete
    //Offermatica redirect offer is unsuccessful
    //Use default signup
    window.location.replace("FunnelIndex.aspx?mBoxFail ed=1");
    }
    </script>

    </head>
    <body onload="PageLoaded()">
    <form name="form1" method="post" action="RedirectMboxPage.aspx" id="form1">
    <div>
    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wVVDVJVTM0Nzv5MzgzVGV=" />
    </div>

    <div class="mboxDefault">
    .
    </div>

    <script language="JavaScript1.2">
    mboxCreate('signup_top', 'pt=online', 'cid=1', 'tID=1', 'uID=1');
    </script>

    </form>
    </body>
    </html>


    This contains nothing useful. As it calls a function on the server and based on that returns which URL to call next (randomly). which could either be:
    https://signup.qa.xxx.com/signup/Fun...x?mBoxFailed=1

    or

    https://signup.qa.xxx.com/signup/fun...x?useversion=a

    Then the URL above will then redirect to the last page.

    In VUgen the web_url calls recorded are either:
    Https://signup.qa.xxx.com/signup/index.aspx
    https://signup.qa.xxx.com/signup/Fun...x?mBoxFailed=1

    OR

    Https://signup.qa.xxx.com/signup/index.aspx
    https://signup.qa.xxx.com/signup/fun...x?useversion=a

    How can i force a web_url call to go through all redirects and then go to the last page i need? cause otherwise i cannot capture which page i should call.

    LR Profile:
    ___________
    1. LR 8.1
    2. Web (HTTP/HTML)
    3. Yes - HTML Advanced with URLs
    4. Not URL Mode
    5. No FPs installed
    6. New recording Engine
    7. Type: Permanent, Validity: Unlimited
    Web & Multimedia 200
    Oracle E-business 100
    8. Yes
    9. Windows XP, Windows 2000
    10. No Service request filled with HP
    _______________________________________________
    1. LR Version: LR 9.5
    2. protocol: Web (HTTP/HTML)
    3. HTML-Advanced with URLs: No
    4. URL mode: N/A
    5. LR FP: N/A
    6. VuGen Recording: New Engine
    7. Web & Multimedia 1700 - Oracle E-Business 100
    8. support/maintenance contract active: yes
    9. Windows 2003 R2
    10. Did not file

  2. #2
    Senior Member
    Join Date
    Nov 2007
    Location
    Bangalore,India
    Posts
    166
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Issue with HTTP Redirects

    I guess you can try writing manually all the web_url functions for the missing urls. you could have something like this

    web_url("URL1",
    "URL=http://URL1",
    "Resource=0",
    "RecContentType=text/html",
    "Referer=",
    "Snapshot=t1.inf",
    "Mode=HTTP",
    LAST);

    web_url("URL2",
    "URL=http://URL2",
    "Resource=0",
    "RecContentType=text/html",
    "Referer=http://URL1",
    "Snapshot=t1.inf",
    "Mode=HTTP",
    LAST);
    :
    :
    :
    :

    You can do this for each and every page till you get to your page. All you need to do is add the current url in the URL= and at the referer use the url of the previous page and do this till you reach the url of the final page. Hope this helps

    Thanks
    Prashanth T

  3. #3
    Senior Member
    Join Date
    Nov 2007
    Location
    Bangalore,India
    Posts
    166
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Issue with HTTP Redirects

    There is one more thing you can check is if your url requests ahve a parameter like "IgnoreRedirections= Yes".

  4. #4
    Senior Member
    Join Date
    Jul 2007
    Location
    Amman, Jordan
    Posts
    281
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Issue with HTTP Redirects

    I have tried adding a web_url call for the missing RedirectMBoxPage.aspx page but did not help me at all; the same RedirectMBoxPage.aspx displayed again.

    Thing is i cannot force which page i want displayed. It all depends on which page the server wants to display and this is the information i cannot capture.
    _______________________________________________
    1. LR Version: LR 9.5
    2. protocol: Web (HTTP/HTML)
    3. HTML-Advanced with URLs: No
    4. URL mode: N/A
    5. LR FP: N/A
    6. VuGen Recording: New Engine
    7. Web & Multimedia 1700 - Oracle E-Business 100
    8. support/maintenance contract active: yes
    9. Windows 2003 R2
    10. Did not file

  5. #5
    Moderator JakeBrake's Avatar
    Join Date
    Dec 2000
    Location
    St. Louis - Year 2025
    Posts
    15,609
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Issue with HTTP Redirects

    As I understand what is documented thus far...

    I would ask the developers to recode the page properly and then you will not have the issue. Also, if the redirect is not cached locally or at the server you have a built-in argument to persuade the change. Show them the payload of the redirect. That becomes a performance hit that can be eliminated.

  6. #6
    Senior Member
    Join Date
    Jul 2007
    Location
    Amman, Jordan
    Posts
    281
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Issue with HTTP Redirects

    I already arranged a meeting with them to try and figure out a way to eliminate or minimize those redirects.

    So i get it that i cannot instruct a web url call to pass through all redirects and get me to the last page right?
    _______________________________________________
    1. LR Version: LR 9.5
    2. protocol: Web (HTTP/HTML)
    3. HTML-Advanced with URLs: No
    4. URL mode: N/A
    5. LR FP: N/A
    6. VuGen Recording: New Engine
    7. Web & Multimedia 1700 - Oracle E-Business 100
    8. support/maintenance contract active: yes
    9. Windows 2003 R2
    10. Did not file

  7. #7
    Moderator JakeBrake's Avatar
    Join Date
    Dec 2000
    Location
    St. Louis - Year 2025
    Posts
    15,609
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Issue with HTTP Redirects

    First and foremost, did you correlate this?

  8. #8
    Senior Member
    Join Date
    Jul 2007
    Location
    Amman, Jordan
    Posts
    281
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Issue with HTTP Redirects

    correlate what exactly?
    _______________________________________________
    1. LR Version: LR 9.5
    2. protocol: Web (HTTP/HTML)
    3. HTML-Advanced with URLs: No
    4. URL mode: N/A
    5. LR FP: N/A
    6. VuGen Recording: New Engine
    7. Web & Multimedia 1700 - Oracle E-Business 100
    8. support/maintenance contract active: yes
    9. Windows 2003 R2
    10. Did not file

  9. #9
    Moderator
    Join Date
    Jan 2006
    Location
    Charlotte, NC
    Posts
    1,600
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Issue with HTTP Redirects

    The place to start is URL mode and then "log server returns".
    Unless you are writing a compiler, strtok is NOT the answer.
    See: http://www.sqaforums.com/showflat.ph...=541641#542222

    QAF is still an exercise in self-sufficiency! (Thank JB!)

  10. #10
    Senior Member
    Join Date
    Jul 2007
    Location
    Amman, Jordan
    Posts
    281
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Issue with HTTP Redirects

    Just tried URL mode, server isn't giving me a hint on which page its going to open next :S i guess i'm gonna have to wait and see what the developers can say regarding this...
    _______________________________________________
    1. LR Version: LR 9.5
    2. protocol: Web (HTTP/HTML)
    3. HTML-Advanced with URLs: No
    4. URL mode: N/A
    5. LR FP: N/A
    6. VuGen Recording: New Engine
    7. Web & Multimedia 1700 - Oracle E-Business 100
    8. support/maintenance contract active: yes
    9. Windows 2003 R2
    10. Did not file

 

 
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 10:04 PM.

Copyright BetaSoft Inc.