Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Internet explorer HTTP Authentication - sending or storing headers

Internet explorer HTTP Authentication - sending or storing headers

Scheduled Pinned Locked Moved C#
securityjavascript
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vijayanand Settin
    wrote on last edited by
    #1

    I am working on developing a browser helper object for IE. I have to automatically login in to some sites. These are issues I am facing: 1. In one of the sites, although I use a Navigate2() function of IWebBrowser2 with 'Basic' Authorization header, the site neglects it because it looks like a javascript function is run while loaded and it opens up a pop asking for credentials again (response header with WWW-Authenticate and Basic realm). 2. There are a few other sites where I succeed in logging in by sending Authorization header. But if I click on any of the links or try to browse, they again ask for credentials - some times with same domain or a different domain when it happens to open a new window. I need a way to store login credentials as a part of internet explorer which the browser can add to every request for a domain or a set of domains. Or, if there are any other solutions, please do suggest. Please do let me know if I am not clear. Thanks, Vijay

    S 1 Reply Last reply
    0
    • V Vijayanand Settin

      I am working on developing a browser helper object for IE. I have to automatically login in to some sites. These are issues I am facing: 1. In one of the sites, although I use a Navigate2() function of IWebBrowser2 with 'Basic' Authorization header, the site neglects it because it looks like a javascript function is run while loaded and it opens up a pop asking for credentials again (response header with WWW-Authenticate and Basic realm). 2. There are a few other sites where I succeed in logging in by sending Authorization header. But if I click on any of the links or try to browse, they again ask for credentials - some times with same domain or a different domain when it happens to open a new window. I need a way to store login credentials as a part of internet explorer which the browser can add to every request for a domain or a set of domains. Or, if there are any other solutions, please do suggest. Please do let me know if I am not clear. Thanks, Vijay

      S Offline
      S Offline
      Sipder
      wrote on last edited by
      #2

      I think Cookies will be the best solution for this

      V 1 Reply Last reply
      0
      • S Sipder

        I think Cookies will be the best solution for this

        V Offline
        V Offline
        Vijayanand Settin
        wrote on last edited by
        #3

        Sipder, thanks for the suggestion. Could you elaborate more on that, pls? Won't the server look for an authorization header? How does one make sure cookies are read when credentials are required? Thanks, Vijay

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups