All pastes #932362 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-03-07 18:09 UTC
rendered paste body
import java.net.*;
import java.io.*;

public class ImFeelingLucky2 {
  public static void main(String[] args) {
    try {
	String req = "http://howitzer.daimi.au.dk:10500/Wiki/Server?word=jspr";
	
	HttpURLConnection con = (HttpURLConnection) (new URL(req)).openConnection();
	con.setRequestProperty("User-Agent", "IXWT");
	con.setRequestMethod("PUT");
    } catch (IOException e) {
      System.err.println(e); 
    }
  }
}