Click here to Skip to main content
15,906,567 members
Home / Discussions / C#
   

C#

 
GeneralRe: DBF Export from SQL with .NET Pin
davethiss10-Mar-05 7:38
davethiss10-Mar-05 7:38 
GeneralRe: DBF Export from SQL with .NET Pin
Guinness4Strength10-Mar-05 7:51
Guinness4Strength10-Mar-05 7:51 
GeneralRe: DBF Export from SQL with .NET Pin
davethiss10-Mar-05 7:54
davethiss10-Mar-05 7:54 
GeneralRe: DBF Export from SQL with .NET Pin
Guinness4Strength10-Mar-05 8:02
Guinness4Strength10-Mar-05 8:02 
Generalchanging the background colour for specific ListBox Item Pin
fors4ken9-Mar-05 20:30
fors4ken9-Mar-05 20:30 
GeneralRe: changing the background colour for specific ListBox Item Pin
Guinness4Strength10-Mar-05 7:35
Guinness4Strength10-Mar-05 7:35 
GeneralRe: changing the background colour for specific ListBox Item Pin
fors4ken14-Mar-05 2:31
fors4ken14-Mar-05 2:31 
Generalat my wit's end: http auth Pin
sharkfish9-Mar-05 19:53
sharkfish9-Mar-05 19:53 
del.icio.us links uses http auth. I send a link such as:

http://username:password@del.icio.us/api/posts/add?&url=http://www.engadget.com/&description=engadget&extended=engadget&tags=blog&dt=3/10/2005 12:34:49 AM

with my username and password, and I get the little xml snippet via html <result code='done'>

If I try to grab this result code with


		<br />
                       <br />
                       <br />
string lcUrl="http://username:password@del.icio.us/api/posts/add?&url=http://www.engadget.com/&description=engadget&extended=engadget&tags=blog&dt=3/10/2005 12:34:49 AM"<br />
                       // *** Establish the request<br />
			HttpWebRequest loHttp =<br />
				(HttpWebRequest) WebRequest.Create(lcUrl);<br />
<br />
			// *** Set properties<br />
			loHttp.Timeout = 10000;    // 10 secs<br />
			loHttp.UserAgent = "code I borrowed trying to do this dang-it!";<br />
<br />
			// *** Retrieve request info headers<br />
			HttpWebResponse loWebResponse = (HttpWebResponse) loHttp.GetResponse();<br />
<br />
			Encoding enc = Encoding.GetEncoding(1252);  // Windows default Code Page<br />
<br />
			StreamReader loResponseStream =<br />
				new StreamReader(loWebResponse.GetResponseStream(),enc);<br />
<br />
			string lcHtml = loResponseStream.ReadToEnd();<br />
<br />
			loWebResponse.Close();<br />
			loResponseStream.Close();<br />
<br />



I get the 401 error. I am trying to stream out the result code so I can store it in a string variable.

Any guidance is appreciated.
QuestionHow to retrive word under the mouse? Pin
poklag9-Mar-05 19:51
poklag9-Mar-05 19:51 
GeneralC# Button Shortcut Problems Pin
raosundar9-Mar-05 18:14
raosundar9-Mar-05 18:14 
GeneralJoystick Pin
Christian Graus9-Mar-05 16:57
protectorChristian Graus9-Mar-05 16:57 
GeneralRe: Joystick Pin
mav.northwind9-Mar-05 21:45
mav.northwind9-Mar-05 21:45 
GeneralPlatform Invoke (pinvoke) Pin
gmhanna9-Mar-05 16:32
gmhanna9-Mar-05 16:32 
GeneralRe: Platform Invoke (pinvoke) Pin
Chua Wen Ching9-Mar-05 16:47
Chua Wen Ching9-Mar-05 16:47 
GeneralHandle pressing Enter or Tab key in DataGridTextBox Pin
Anonymous9-Mar-05 16:24
Anonymous9-Mar-05 16:24 
GeneralRe: Handle pressing Enter or Tab key in DataGridTextBox Pin
DougW489-Mar-05 17:30
DougW489-Mar-05 17:30 
GeneralRe: Handle pressing Enter or Tab key in DataGridTextBox Pin
Anonymous9-Mar-05 18:01
Anonymous9-Mar-05 18:01 
GeneralHandle pressing Enter or Tab key in DataGridTextBox Pin
Anonymous9-Mar-05 16:23
Anonymous9-Mar-05 16:23 
GeneralVisitors counter Pin
ABBASI_RA9-Mar-05 15:56
ABBASI_RA9-Mar-05 15:56 
GeneralRe: Visitors counter Pin
Christian Graus9-Mar-05 16:53
protectorChristian Graus9-Mar-05 16:53 
GeneralRe: Visitors counter Pin
ABBASI_RA9-Mar-05 17:21
ABBASI_RA9-Mar-05 17:21 
GeneralRe: Visitors counter Pin
Christian Graus9-Mar-05 17:58
protectorChristian Graus9-Mar-05 17:58 
Generaloutlook automation Pin
ppp0019-Mar-05 14:59
ppp0019-Mar-05 14:59 
GeneralRe: outlook automation Pin
Corinna John9-Mar-05 19:49
Corinna John9-Mar-05 19:49 
GeneralRe: outlook automation Pin
ppp0019-Mar-05 20:55
ppp0019-Mar-05 20:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.