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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
B

Bkaufman43

@Bkaufman43
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • http BASIC authentication question
    B Bkaufman43

    Thank you very much Felipe! Ok - here come the "dumb" questions - sorry! Where do I place this code?: String auth = userID + ":" + password; byte[] binaryData = Encoding.UTF8.GetBytes(auth); auth = Convert.ToBase64String(binaryData); // Using base64 encoding auth = "Basic " + auth; //This specifies it to use Basic Authentication Does this go in the web.config file? If not where? Same question for: // Prepare web request HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(myURL); Where do I place this code? And lastly are the standard (and additional) headers added in the document headers section of IIs in the virtual directory that contains the asp.net form page? If not where? Thanks for your patience.

    Bruce K.

    ASP.NET security question csharp asp-net database

  • http BASIC authentication question
    B Bkaufman43

    I am relatively new to Asp.Net. Here's my question: I need to do a simple http POST to a service URL (at a different domain) with all the parameters in the query string. For security purposes the service URL is using http BASIC authentication under https. I need to add an "Authorization" header with a Base64 encoded username and password to gain access to the service. For the sake of illustration, assuming the login is: Abcdef and the password is aBC123abc -- what would the coding look like (in VB)? Where specifically would the coding be placed? Thanks!

    Bruce K.

    ASP.NET security question csharp asp-net database
  • Login

  • Don't have an account? Register

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