Results 1 to 7 of 7

Different response text depending on login or logout state

Threaded View

  1. #1
    Forum Contributor
    Join Date
    11-29-2014
    Location
    India
    MS-Off Ver
    MS Excel 2007
    Posts
    240

    Different response text depending on login or logout state

    Hello friends,

    With my code (given below), I capture source of my website's webpage and then I am trying to find a string with InStr and process it with Split. Everything is working but I have an issue where I need help.

    When I am logged in to my website supplying the username and password, I can see the string in the webpage source but when I am in a logged out state, my string is not visible in the webpage source. What changes do I need in the code which will tell the computer that I am logged in.

    Appreciate a reply. Thanks

    Sub source()
        Dim oHttp As New WinHttp.WinHttpRequest
        Dim sURL As String
        Dim webpageSource As String
        sURL = "http://www.google.com"
        oHttp.Open "GET", sURL, False
        oHttp.send
        webpageSource = oHttp.ResponseText
    End Sub
    EDIT
    Is this a cache issue? if yes, how to code it so that it honors the browser cache and gets the source as it shows up in logged in state?
    Last edited by sabha; 10-08-2015 at 02:53 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Login and Logout Template
    By carlzilla in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-06-2020, 10:55 AM
  2. Login - Logout report
    By vamshi57 in forum Excel General
    Replies: 9
    Last Post: 04-19-2016, 12:38 AM
  3. Replies: 0
    Last Post: 02-17-2014, 07:44 AM
  4. login and logout time , with total login time ,break> 1 hours
    By shrinivasmj in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-12-2013, 05:37 AM
  5. [SOLVED] Duration: login logout macro
    By city in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-11-2012, 11:25 AM
  6. Login Logout Report
    By excelnightmare in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-02-2011, 01:45 PM
  7. Login Logout userform
    By poitachi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-19-2010, 03:01 PM
  8. First login & last Logout
    By Vikky in forum Excel General
    Replies: 2
    Last Post: 08-19-2006, 01:20 AM

Bookmarks

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 Friendly URLs by vBSEO 3.6.0 RC 1