Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Lacking the understanding of the language I cannot give you concrete advice.</p> <p>However the way to go is to check the form on the web page. Then you can send a post request to the site defined there. </p> <p>As post body you send the parameters of the form like they would appear as URL parameters.</p> <pre><code>&lt;!-- language: lang-js --&gt; String payload = "password=test&amp;user=test" // password and user must be replaced with the names of the form fields and test with password and username respectively HttpURLConnection configConnection = new URL(formTarget).openConnection(); System.out.println("+------------------------------------------------------"); System.out.println("| Request "); System.out.println("+------------------------------------------------------"); System.out.println("| URL: " + configConnection.getURL()); System.out.println("+------------------------------------------------------"); System.out.println("| Payload "); System.out.println("+------------------------------------------------------"); System.out.println(payload); configConnection.setDoOutput(true); configConnection.setRequestMethod("POST"); configConnection.getOutputStream().write(payload.getBytes()); InputStream xmlInputStream = configConnection.getInputStream(); int _byte = -1; ByteArrayOutputStream bios = new ByteArrayOutputStream(); while ((_byte = xmlInputStream.read()) &gt; -1) { bios.write(_byte); } final byte[] responseBytes = bios.toByteArray(); String responseString = new String(responseBytes); System.out.println("+------------------------------------------------------"); System.out.println("| Response "); System.out.println("+------------------------------------------------------"); System.out.println("| Code: " + configConnection.getResponseCode()); System.out.println("+------------------------------------------------------"); System.out.println(responseString); System.out.println("+------------------------------------------------------"); </code></pre> <p>To better parse the output you can use the <a href="http://home.ccil.org/~cowan/XML/tagsoup/" rel="nofollow">tagsoup</a> library to transform it into proper xhtml. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload