fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using System.IO;
  11. using System.Net;
  12.  
  13. namespace entropedizer
  14. {
  15. public partial class Form1 : Form
  16. {
  17. public Form1()
  18. {
  19. InitializeComponent();
  20. }
  21.  
  22. private void Form1_Load(object sender, EventArgs e)
  23. {
  24. ASCIIEncoding encoding = new ASCIIEncoding();
  25.  
  26. // This is most likely the problematic line. I'm not really sure what to assign to postData. The current string shown below is the string obtained from LiveHTTPHeaders, as seen at 7:50 in the video: http://w...content-available-to-author-only...e.com/watch?v=7Wzel-g1U54 I have also tried adding referer=http://w...content-available-to-author-only...a.info/Chart.aspx?chart=Chart& to the beginning.
  27. string postData = "__EVENTTARGET=ctl00%24ContentPlaceHolder1%24DG1%24ctl19%24ctl05&__EVENTARGUMENT=&__LASTFOCUS=&__VIEWSTATE=%2FwEPaA8FDzhkMDBhMDhkNTNkYjFhYRgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WEQUkY3RsMDAkQ29udGVudFBsYWNlSG9sZGVyMSRBbGxDb2xzQ2hrBSljdGwwMCRDb250ZW50UGxhY2VIb2xkZXIxJERHMSRjdGwwMiRjdGwwMAUpY3RsMDAkQ29udGVudFBsYWNlSG9sZGVyMSRERzEkY3RsMDMkY3RsMDAFKWN0bDAwJENvbnRlbnRQbGFjZUhvbGRlcjEkREcxJGN0bDA0JGN0bDAwBSljdGwwMCRDb250ZW50UGxhY2VIb2xkZXIxJERHMSRjdGwwNSRjdGwwMAUpY3RsMDAkQ29udGVudFBsYWNlSG9sZGVyMSRERzEkY3RsMDYkY3RsMDAFKWN0bDAwJENvbnRlbnRQbGFjZUhvbGRlcjEkREcxJGN0bDA3JGN0bDAwBSljdGwwMCRDb250ZW50UGxhY2VIb2xkZXIxJERHMSRjdGwwOCRjdGwwMAUpY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CjIKZ0wUCiIKZ0wUCiYKZ0wUCkIKF%2BAwCkYKF%2BAwCjoKF%2BAwCjYKZ0wUCjIKF%2BAyM8jBkKTq3kgDYc4tEeh63Qd%2BQJQ%3D%3D&ctl00%24PlanetList=Entropia+Universe&ctl00%24SearchText=&ctl00%24ContentPlaceHolder1%24CollapsiblePanelExtender3_ClientState=false&ctl00%24ContentPlaceHolder1%24CollapsiblePanelExtender2_ClientState=&ctl00%24ContentPlaceHolder1%24FilterNameDdl=Text&ctl00%24ContentPlaceHolder1%24FilterType=%3D&ctl00%24ContentPlaceHolder1%24FilterName=&ctl00%24ContentPlaceHolder1%24CollapsiblePanelExtender1_ClientState=false&ctl00%24ContentPlaceHolder1%24DG1%24ctl19%24ctl02=1&ctl00%24ContentPlaceHolder1%24DG1%24ctl19%24ctl14=15";
  28. byte[] data = encoding.GetBytes(postData);
  29.  
  30. WebRequest request = WebRequest.Create("http://w...content-available-to-author-only...a.info/Chart.aspx?chart=Chart");
  31. request.Method = "POST";
  32. request.ContentType = "application/x-www-form-urlencoded";
  33. request.ContentLength = data.Length;
  34.  
  35. Stream stream = request.GetRequestStream();
  36. stream.Write(data, 0, data.Length); // This is where postData seems to play its most important role.
  37. stream.Close();
  38.  
  39. WebResponse response = request.GetResponse();
  40. stream = response.GetResponseStream();
  41.  
  42. StreamReader sr = new StreamReader(stream);
  43. textBox1.Text = sr.ReadToEnd();
  44.  
  45. stream.Close();
  46. sr.Close();
  47. }
  48. }
  49. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(4,14): error CS0234: The type or namespace name `Data' does not exist in the namespace `System'. Are you missing an assembly reference?
prog.cs(8,24): error CS0234: The type or namespace name `Tasks' does not exist in the namespace `System.Threading'. Are you missing an assembly reference?
prog.cs(9,14): error CS0234: The type or namespace name `Windows' does not exist in the namespace `System'. Are you missing an assembly reference?
Compilation failed: 3 error(s), 0 warnings
stdout
Standard output is empty