Click here to Skip to main content
15,920,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hide or make my peocess invisible in task manager? Pin
Christian Graus26-Apr-09 14:03
protectorChristian Graus26-Apr-09 14:03 
GeneralRe: Hide or make my peocess invisible in task manager? Pin
sbscb26-Apr-09 14:35
sbscb26-Apr-09 14:35 
GeneralRe: Hide or make my peocess invisible in task manager? Pin
Dave Kreskowiak26-Apr-09 19:23
mveDave Kreskowiak26-Apr-09 19:23 
GeneralRe: Hide or make my peocess invisible in task manager? Pin
22over728-Apr-09 12:45
22over728-Apr-09 12:45 
GeneralRe: Hide or make my peocess invisible in task manager? Pin
Darki6995-Feb-11 14:03
Darki6995-Feb-11 14:03 
QuestionHashsets and objects... Pin
daviiie26-Apr-09 10:07
daviiie26-Apr-09 10:07 
AnswerRe: Hashsets and objects... Pin
Luc Pattyn26-Apr-09 10:41
sitebuilderLuc Pattyn26-Apr-09 10:41 
GeneralRe: Hashsets and objects... Pin
daviiie26-Apr-09 10:55
daviiie26-Apr-09 10:55 
GeneralRe: Hashsets and objects.. Pin
Luc Pattyn26-Apr-09 11:14
sitebuilderLuc Pattyn26-Apr-09 11:14 
QuestionSelected ListViewItem Pin
Saksida Bojan26-Apr-09 9:06
Saksida Bojan26-Apr-09 9:06 
AnswerRe: Selected ListViewItem Pin
Roberto Ho26-Apr-09 13:18
Roberto Ho26-Apr-09 13:18 
GeneralRe: Selected ListViewItem Pin
Saksida Bojan26-Apr-09 21:36
Saksida Bojan26-Apr-09 21:36 
QuestionSave data Pin
Star0926-Apr-09 7:59
Star0926-Apr-09 7:59 
AnswerRe: Save data Pin
OriginalGriff26-Apr-09 8:09
mveOriginalGriff26-Apr-09 8:09 
GeneralRe: Save data Pin
Star0926-Apr-09 8:13
Star0926-Apr-09 8:13 
GeneralRe: Save data Pin
OriginalGriff26-Apr-09 8:36
mveOriginalGriff26-Apr-09 8:36 
GeneralRe: Save data Pin
Star0926-Apr-09 8:38
Star0926-Apr-09 8:38 
QuestionWPF DatePiker Pin
Mohammed Elkholy26-Apr-09 5:37
Mohammed Elkholy26-Apr-09 5:37 
QuestionRe: WPF DatePiker Pin
fly90426-Apr-09 5:57
fly90426-Apr-09 5:57 
AnswerRe: WPF DatePiker Pin
Mohammed Elkholy26-Apr-09 11:36
Mohammed Elkholy26-Apr-09 11:36 
GeneralRe: WPF DatePiker Pin
fly90426-Apr-09 11:56
fly90426-Apr-09 11:56 
GeneralRe: WPF DatePiker Pin
Mohammed Elkholy26-Apr-09 12:01
Mohammed Elkholy26-Apr-09 12:01 
GeneralRe: WPF DatePiker Pin
Mohammed Elkholy28-Apr-09 2:14
Mohammed Elkholy28-Apr-09 2:14 
QuestionSending requst with sent cookies Pin
Gindi Bar Yahav26-Apr-09 5:36
Gindi Bar Yahav26-Apr-09 5:36 
Hey,
I want to ask for your help:
i am in the middle of building a program using C#, the program have to read XML file from the net that including the information about the member that logind in (this is a website) and display it in the program.
the problem is that when i do the requst it not send any cookies with the requst, so the xml return guest, how can i get with C# the cookies that was sendin the website to send them?

example: i have loggind in the website with "gindi bar yahav", "123321" - the web set cookies on my computer, now i want to get those cookies with C# becuse i need to use them when i requst from the XML file.

that was the code i used

try
{
    HttpWebRequest request = (HttpWebRequest)WebRequest.Create(this.xml_file);
    request.Method = "GET";

    //  Fetch cookies

    CookieContainer web_cookies = new CookieContainer();
    CookieContainer cookies = web_cookies.GetCookies(new Uri("http://otaku-con.co.il"));
    request.CookieContainer = cookies;
    //  Send
    HttpWebResponse resp = (HttpWebResponse) request.GetResponse();

    st = resp.GetResponseStream();
    sr = new System.IO.StreamReader(st);

    // read all the text in it
    System.Windows.Forms.MessageBox.Show(sr.ReadToEnd().ToString());
}
catch(Exception e)
{
    System.Windows.Forms.MessageBox.Show(e.ToString());
    System.Windows.Forms.Application.Exit();
}


when i get the message it gave me "Array()" what means i dont have any cookies (in the page i tried only to print the cookies [with PHP]) but when i go to the page with the browser i can see all my cookies.

someone know what the problem?

thanks alot, Yahav.

Gindi Bar Yahav - Web & Software defeloper.

Question[Message Deleted] Pin
hkjghkj126-Apr-09 3:34
hkjghkj126-Apr-09 3:34 

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.