Click here to Skip to main content
15,890,527 members
Home / Discussions / C#
   

C#

 
QuestionTemp Folder Pin
hadad28-Aug-08 3:04
hadad28-Aug-08 3:04 
AnswerRe: Temp Folder Pin
DaveyM6928-Aug-08 3:11
professionalDaveyM6928-Aug-08 3:11 
AnswerRe: Temp Folder Pin
#realJSOP28-Aug-08 3:18
mve#realJSOP28-Aug-08 3:18 
GeneralRe: Temp Folder Pin
User 665828-Aug-08 3:34
User 665828-Aug-08 3:34 
JokeRe: Temp Folder Pin
lisan_al_ghaib28-Aug-08 5:12
lisan_al_ghaib28-Aug-08 5:12 
GeneralRe: Temp Folder Pin
User 665828-Aug-08 5:25
User 665828-Aug-08 5:25 
QuestionMultimedia utility [modified] Pin
sanaritasages28-Aug-08 3:00
sanaritasages28-Aug-08 3:00 
QuestionURGENT: Unable to get the authentication token using console application in C# Pin
Princy Philip28-Aug-08 2:51
Princy Philip28-Aug-08 2:51 
Hi
I am developing a Console Application in C# that uploads videos to aol website using the api.
I have created a AOL screen name and also the devId.

I am trying to get the auth token by submitting the required parameters in the following format:
string request url= https://api.screenname.aol.com/auth/getToken?f=qs&devId="mydevId"&supportedIdType=SN,ICQ,OID&succUrl=http://localhost/AOL/Default.aspx&s="Myscreenname"
as well as
http://api.screenname.aol.com/auth/login?f=qs&devId="mydevId"&supportedIdType=SN,ICQ,OID&succUrl=http://localhost/AOL/Default.aspx&s="Myscreenname"

But am not able to get the response url having the token as it always give me the login screen html or a message saying "not authenticated".
It being a console application,I cant show the login screen.

Is there any way through which I can upload my videos to aol using console application.

Please find the code I have written below:
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(requestUrl);
            req.Method = "POST";
            req.ContentType = "application/x-www-form-urlencoded";
            req.ContentLength = buffer.Length;
            req.Proxy = new WebProxy(proxy, true); // ignore for local addresses
            req.CookieContainer = new CookieContainer(); // enable cookies

            Stream reqst = req.GetRequestStream(); // add form data to request stream
            reqst.Write(buffer, 0, buffer.Length);
            reqst.Flush();
            reqst.Close();

            Console.WriteLine("\nPosting 'red' to " + requestUrl);
            HttpWebResponse res = (HttpWebResponse)req.GetResponse(); // send request, getresponse
            Console.WriteLine("\nResponse stream is: \n");
            string eq=res.GetResponseStream().ToString();
            Stream resst = res.GetResponseStream(); // display HTTP response
            StreamReader sr = new StreamReader(resst);
            Console.WriteLine(sr.ReadToEnd());
            Console.ReadLine()





We are really in need for the solution.Please help me by posting a reply as soon as possible.

Thanks
Sonu
(incubator142@hotmail.com)
AnswerRe: URGENT: Unable to get the authentication token using console application in C# Pin
#realJSOP28-Aug-08 3:20
mve#realJSOP28-Aug-08 3:20 
QuestionCraeting Software Setup for one time use (install) Pin
Ingenious HM28-Aug-08 1:45
Ingenious HM28-Aug-08 1:45 
Questionaccess denied when accessing IIS directory Pin
George_George28-Aug-08 1:37
George_George28-Aug-08 1:37 
AnswerRe: access denied when accessing IIS directory Pin
leppie28-Aug-08 2:22
leppie28-Aug-08 2:22 
GeneralRe: access denied when accessing IIS directory Pin
George_George28-Aug-08 2:37
George_George28-Aug-08 2:37 
GeneralRe: access denied when accessing IIS directory Pin
leppie28-Aug-08 2:44
leppie28-Aug-08 2:44 
GeneralRe: access denied when accessing IIS directory Pin
George_George28-Aug-08 3:56
George_George28-Aug-08 3:56 
GeneralRe: access denied when accessing IIS directory Pin
leppie28-Aug-08 4:27
leppie28-Aug-08 4:27 
GeneralRe: access denied when accessing IIS directory Pin
George_George1-Sep-08 3:47
George_George1-Sep-08 3:47 
Questionmuliple class problem Pin
Gretna28-Aug-08 0:49
Gretna28-Aug-08 0:49 
AnswerRe: muliple class problem Pin
Christian Graus28-Aug-08 1:15
protectorChristian Graus28-Aug-08 1:15 
GeneralRe: muliple class problem Pin
User 665828-Aug-08 3:39
User 665828-Aug-08 3:39 
GeneralRe: muliple class problem Pin
Mark Salsbery28-Aug-08 6:33
Mark Salsbery28-Aug-08 6:33 
AnswerRe: muliple class problem Pin
ianhunt0128-Aug-08 19:45
ianhunt0128-Aug-08 19:45 
QuestionFlicker free in c# Pin
Jayawant Karale28-Aug-08 0:26
Jayawant Karale28-Aug-08 0:26 
AnswerRe: Flicker free in c# Pin
Christian Graus28-Aug-08 0:40
protectorChristian Graus28-Aug-08 0:40 
QuestionHow to write my string "<" in XML format Pin
panyl27-Aug-08 23:08
panyl27-Aug-08 23:08 

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.