Include argument for web server location
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
67f508ab0a
commit
4fc2b4e5db
@ -37,7 +37,7 @@ public class ArcadeScreenshotHandler {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
System.out.println(e.getActionCommand());
|
||||
POSTRequest postRes = new POSTRequest("http://localhost:8080/uploadform.html",Path.of("..","screenshot.png"));
|
||||
POSTRequest postRes = new POSTRequest("http://"+args[0]+"/uploadform.html",Path.of("..","screenshot.png"));
|
||||
try {
|
||||
System.out.println(((HttpResponse<String>)postRes.run()).body());
|
||||
} catch (FailedResponseException e1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user