| Author |
RE: C# Site login |
COM
Banned

Posts: 800
Location:
Joined: 31.08.07 Rank: God |
|
How you managed to learn some PHP without learning of $_GET and $_POST, or if you did then how you managed to read about HTTP as well as that and not put two and two together, is beyond me. But, if it says "where ans =" then you probably will need the ans and the equals sign. Protip: there are no spaces... ever.
You know, that link about HTTP I gave before actually has a neat little section about the POST method. I'm not handing out links because it gives me physical pleasure, you know.
K'aem'nhi kh'rn, K'aem'nhi kh'r, K'aem'nhi kh'rmnu.
I'a Y'gs-Othoth! |
|
| Author |
RE: C# Site login |
sk8more272
Member
Posts: 15
Location:
Joined: 14.02.10 Rank: Hacker Level 1 |
|
|
Well COM and Spyware thank you for everything i finally got it, i switched to a webClient and tried posting "ans=###" with uploadString but that diddnt work. i then used uploadValues with a NameValueCollection that contained the name "ans" and the value as my answer and it worked, i just don't know why the uploadString wouldn't work but that did :/ but thanks alot and im going to go research the uploadValues method. :] |
|
| Author |
RE: C# Site login |
spyware
Member

Posts: 4190
Location: The Netherlands
Joined: 14.04.07 Rank: God Warn Level: 90
|
|
I would advise not to meddle too long with C#, it's somewhat useful but it won't really further your knowledge of programming.
Learning C, Perl or Python will give you a much better understanding of how things work inside computers.

"The chowner of property." - Zeph Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term. - Carl Sagan Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor? - Ebert |
|
| Author |
RE: C# Site login |
COM
Banned

Posts: 800
Location:
Joined: 31.08.07 Rank: God |
|
|
spyware wrote:
Learning C, Perl or Python
Goddamnit, stop leaving C++ out all the time you son of a bitch!
Anyhow, OP, you're welcome and now I'd suggest you try it out in C/C++ as well, without cURL, good luck.
K'aem'nhi kh'rn, K'aem'nhi kh'r, K'aem'nhi kh'rmnu.
I'a Y'gs-Othoth! |
|
| Author |
RE: C# Site login |
sk8more272
Member
Posts: 15
Location:
Joined: 14.02.10 Rank: Hacker Level 1 |
|
|
is a compiled language that much better than c#? i've been reading some c++ books but have not yet had the chance to put my knowledge to use. So far i only know VB,C#,Actionscblockedript(i know),java and some php. What language would you guys recommend to migrate to? i'm leaning more towards c++ just to get away from the shitty .net languages, and i don't want to make my primary language a high-level like java :/ |
|
| Author |
RE: C# Site login |
spyware
Member

Posts: 4190
Location: The Netherlands
Joined: 14.04.07 Rank: God Warn Level: 90
|
|
C, C++, Perl, Bash and Lua.
Then Lisp.

"The chowner of property." - Zeph Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term. - Carl Sagan Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor? - Ebert |
|
| Author |
RE: C# Site login |
ellipsis
Member

Posts: 114
Location:
Joined: 13.06.09 Rank: God |
|
Your CookieContainer initialization lacks a proper constructor, but you already know that.
These might help:
http://en.csharp-online.net/HTTP_Post
http://en.csharp-online.net/CSharp_FAQ:_What_is_the_easiest_way_to_fetch_a_Web_page_in_.NET
GNU is NOT UNIX |
|