Hans Muster's Library tagged → View Popular
25 Jun 08
PowerFolder - File Sync, Access, Share, Backup and Transfer. Simple, secure and reliable: Features
15 May 08
SourceForge.net: Files
-
Personal wiki that lives in one self-modifying XHTML containing software, interface and data. Very useful for creating small websites and mantaining notes or todo-lists; completely javascript-programmable, supports images and files embedding.
12 Jun 07
Re: Automating login to website with IIS basic authentication - MSDN Forums
-
Hi Rick,
Here is the link I used to learn about doing this:
http://www.port80software.com/support/articles/authenticationiniis
I can supply you with the code I used to send the user and pass to a site with IIS basic authentication setup but it might be a little confusing since it's modified for my particular application. Also some variable declarations are missing since they are in other parts of the code but this should point you in the right direction... I used the webbrowser object(AxWebBrowser1) to do the actual redirect.
byte[] data;
object objheader;
ASCIIEncoding encoding= new ASCIIEncoding();
data = Encoding.UTF8.GetBytes("");
object objdata = data;
object objnull = "";
string userPass = "myPassword";
//then convert to bytes
byte[] AuthData=System.Text.UnicodeEncoding.UTF8.GetBytes(userPass);
Base64Encoder myEncoder=new Base64Encoder(AuthData);
StringBuilder sb=new StringBuilder();
//Dos would not transfer \r properly from .bat file so we had to recreate it in c#
sb.Append(this.webParams.Substring(0,this.webParams.LastIndexOf("Authorization:")) + "\r");
//reapply the following string which was taken out during parsing and
//addition of \r for carriage return which is neccessary for the proper http header formation
sb.Append("Authorization: Basic ");
//add the new base64 encoded password
sb.Append(myEncoder.GetEncoded());
//apply string to object
objheader = "Content-Type:application/x-www-form-urlencoded\rUser-Agent: MSIE\r" + sb.ToString();
/for debug
//MessageBox.Show("Content-Type:application/x-www-form-urlencoded\rUser-Agent: MSIE\r" + sb.ToString());
09 Nov 06
Error: Unable to open shim database - MSDN Forums
-
HKLM\Software\Microsoft\.NETFramework\Policy\AppPatch
1 - 10 of 10
Showing 20▼ items per page
Selected Tags
Sponsored Links
Ads by Google
Top Contributors
Groups interested in no_tag
Related Lists on Diigo
-
Web 2.0 Tools
Items: 10 | Visits: 883
Created by: Claire Miller
-
Erotica
Items: 40 | Visits: 3362
Created by: Ainis
-
Digital Citizenship/Cyberbullying Video Clips
Items: 27 | Visits: 2023
Created by: Anne Bubnic
Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »
Join Diigo
