fork download
  1. using System;
  2. using System.IO;
  3. using System.Net;
  4.  
  5. class ProxyTest
  6. {
  7. static void Main()
  8. {
  9. HttpListener listener = new HttpListener();
  10. listener.Prefixes.Add("http://*:9000/"); //適当にPort9000
  11. listener.Start();
  12. while (true)
  13. {
  14. HttpListenerContext context = listener.GetContext();
  15. Console.WriteLine(context.Request.RawUrl + "を受信");
  16. context.Response.Close();
  17. }
  18. }
  19. }
Time limit exceeded #stdin #stdout 5s 41080KB
stdin
Standard input is empty
stdout
Standard output is empty