Revision: 35840
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 14, 2010 09:16 by mouseroot
Initial Code
static String path = "/some/post/form.php"
static String domain = "www.somedomain.com"
out.write("POST " + path +"
");
//Post requires Content-length then the data to be URLEncoder.encode("data=value");
OR
out.write("GET " + path + "
");
//Get requires the full path to the form
out.write("Host: " + domain + "
");
out.write("Content-length: " + data.length() + "
");
out.write("User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
");
out.write("Accept:
");
out.write("
");
out.flush();
Initial URL
Initial Description
Http Requests for any langauge really but i used em in java :P
Initial Title
Java Http Requests
Initial Tags
Initial Language
Java