diff --git a/bin/ArcadeReader$1.class b/bin/ArcadeReader$1.class new file mode 100644 index 0000000..3dbd5aa Binary files /dev/null and b/bin/ArcadeReader$1.class differ diff --git a/bin/ArcadeReader.class b/bin/ArcadeReader.class new file mode 100644 index 0000000..4b65c11 Binary files /dev/null and b/bin/ArcadeReader.class differ diff --git a/bin/exceptions/FailedResponseException.class b/bin/exceptions/FailedResponseException.class new file mode 100644 index 0000000..e9ea91c Binary files /dev/null and b/bin/exceptions/FailedResponseException.class differ diff --git a/bin/readers/Box.class b/bin/readers/Box.class new file mode 100644 index 0000000..688a3b7 Binary files /dev/null and b/bin/readers/Box.class differ diff --git a/bin/readers/ColorRange.class b/bin/readers/ColorRange.class new file mode 100644 index 0000000..ea03060 Binary files /dev/null and b/bin/readers/ColorRange.class differ diff --git a/bin/readers/DDRReader.class b/bin/readers/DDRReader.class new file mode 100644 index 0000000..35c712c Binary files /dev/null and b/bin/readers/DDRReader.class differ diff --git a/bin/readers/ITGReader.class b/bin/readers/ITGReader.class new file mode 100644 index 0000000..a9d8310 Binary files /dev/null and b/bin/readers/ITGReader.class differ diff --git a/bin/readers/LoveLiveReader.class b/bin/readers/LoveLiveReader.class new file mode 100644 index 0000000..1049d3b Binary files /dev/null and b/bin/readers/LoveLiveReader.class differ diff --git a/bin/readers/PopnReader.class b/bin/readers/PopnReader.class new file mode 100644 index 0000000..7ff3ecc Binary files /dev/null and b/bin/readers/PopnReader.class differ diff --git a/bin/readers/Reader.class b/bin/readers/Reader.class new file mode 100644 index 0000000..bb2665a Binary files /dev/null and b/bin/readers/Reader.class differ diff --git a/bin/readers/SoundVoltexReader.class b/bin/readers/SoundVoltexReader.class new file mode 100644 index 0000000..798d4a7 Binary files /dev/null and b/bin/readers/SoundVoltexReader.class differ diff --git a/bin/readers/TestReader.class b/bin/readers/TestReader.class new file mode 100644 index 0000000..98c63d7 Binary files /dev/null and b/bin/readers/TestReader.class differ diff --git a/bin/readers/fonts/Font.class b/bin/readers/fonts/Font.class new file mode 100644 index 0000000..719dddd Binary files /dev/null and b/bin/readers/fonts/Font.class differ diff --git a/bin/readers/fonts/Glyph.class b/bin/readers/fonts/Glyph.class new file mode 100644 index 0000000..0d272bc Binary files /dev/null and b/bin/readers/fonts/Glyph.class differ diff --git a/bin/requests/GETRequest$1.class b/bin/requests/GETRequest$1.class new file mode 100644 index 0000000..e1d5f75 Binary files /dev/null and b/bin/requests/GETRequest$1.class differ diff --git a/bin/requests/GETRequest.class b/bin/requests/GETRequest.class new file mode 100644 index 0000000..228f223 Binary files /dev/null and b/bin/requests/GETRequest.class differ diff --git a/bin/requests/MultipartUtility.class b/bin/requests/MultipartUtility.class new file mode 100644 index 0000000..f37d75a Binary files /dev/null and b/bin/requests/MultipartUtility.class differ diff --git a/bin/requests/POSTRequest$1.class b/bin/requests/POSTRequest$1.class new file mode 100644 index 0000000..ffe8468 Binary files /dev/null and b/bin/requests/POSTRequest$1.class differ diff --git a/bin/requests/POSTRequest.class b/bin/requests/POSTRequest.class new file mode 100644 index 0000000..9fb080b Binary files /dev/null and b/bin/requests/POSTRequest.class differ diff --git a/bin/sigPlace.class b/bin/sigPlace.class new file mode 100644 index 0000000..0da5d84 Binary files /dev/null and b/bin/sigPlace.class differ diff --git a/bin/sigServer.class b/bin/sigServer.class new file mode 100644 index 0000000..478b963 Binary files /dev/null and b/bin/sigServer.class differ diff --git a/sigPlace.jar b/sigPlace.jar index 49d0f76..7a91c11 100644 Binary files a/sigPlace.jar and b/sigPlace.jar differ diff --git a/sigPlace.java b/sigPlace.java index 3339023..9ccd56f 100644 --- a/sigPlace.java +++ b/sigPlace.java @@ -137,14 +137,16 @@ public class sigPlace { } if (matches>=EXPECTED_MATCHES&&!submitted) { System.out.println("Data is reasonable, prepare for submitting..."); - POSTRequest postRes = new POSTRequest("http://"+args[1]+"/uploadform.html",temp); - HttpResponse res = ((HttpResponse)postRes.run()); - if (res.statusCode()==200) { - playSound(Paths.get("ding.wav")); - System.out.println("Successful!"); - submitted=true; - } else { - System.out.println("Got status code "+res); + try { + POSTRequest postRes = new POSTRequest("http://"+args[1]+"/uploadform.html",temp); + HttpResponse res = ((HttpResponse)postRes.run()); + if (res.statusCode()==0) { + playSound(Paths.get("ding.wav")); + System.out.println("Successful!"); + submitted=true; + } + } catch (FailedResponseException e) { + System.out.println("Failed! "+e.getMessage()); } } }