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. proxi authentification

proxi authentification

Scheduled Pinned Locked Moved C#
csharpquestion
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.
  • C Offline
    C Offline
    Camilo Sanchez
    wrote on last edited by
    #1

    I want to open e web from my C# aplication but i need to autentificate with a proxi how can i do it

    S 1 Reply Last reply
    0
    • C Camilo Sanchez

      I want to open e web from my C# aplication but i need to autentificate with a proxi how can i do it

      S Offline
      S Offline
      S Senthil Kumar
      wrote on last edited by
      #2

      Assuming you're using WebClient and your proxy is using basic authentication, add the Proxy-Authenticate[^] field to the Headers collection.

      string base64 = Convert.ToBase64String(Encoding.ASCII.GetBytes(":"));
      webClient.Headers.Add("Proxy-Authenticate", "Basic " + base64);

      Or, you can use the NetworkCredential class to do it for you. Regards Senthil _____________________________ My Blog | My Articles | WinMacro

      C 1 Reply Last reply
      0
      • S S Senthil Kumar

        Assuming you're using WebClient and your proxy is using basic authentication, add the Proxy-Authenticate[^] field to the Headers collection.

        string base64 = Convert.ToBase64String(Encoding.ASCII.GetBytes(":"));
        webClient.Headers.Add("Proxy-Authenticate", "Basic " + base64);

        Or, you can use the NetworkCredential class to do it for you. Regards Senthil _____________________________ My Blog | My Articles | WinMacro

        C Offline
        C Offline
        Camilo Sanchez
        wrote on last edited by
        #3

        before anyting thanks for your reply and have a happy new year i was trying to understand what i was asking for and i couldnt understand a shit anyway i either understang anthing of what you answer me what i was trying to do was a web application that, using forms authentication authenticate users from a db and could even create new users i wish you could tell me how can i do the first thanks

        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