Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>yay! Found the solution. I do in captcha get that:</p> <pre><code>String urldisplay = urls[0]; Bitmap mIcon11 = null; try { java.net.URL url = new java.net.URL(urldisplay); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setUseCaches(true); connection.connect(); String cookie = connection.getHeaderField("Set-Cookie"); cookie = cookie.substring(0, cookie.indexOf(';')); mSes = cookie; InputStream in = connection.getInputStream(); mIcon11 = BitmapFactory.decodeStream(in); </code></pre> <p>And on page verification that :</p> <pre><code>DefaultHttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost("http://somesite.lt/index.php"); httppost.addHeader("Cookie", mSes); try { // Add your data List&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;(2); nameValuePairs.add(new BasicNameValuePair("phoneno", ((EditText)findViewById(R.id.number)).getText().toString())); nameValuePairs.add(new BasicNameValuePair("phbody", ((EditText)findViewById(R.id.sms)).getText().toString())); nameValuePairs.add(new BasicNameValuePair("captcha_code", ((EditText)findViewById(R.id.code)).getText().toString())); nameValuePairs.add(new BasicNameValuePair("agree", "on")); nameValuePairs.add(new BasicNameValuePair("submit", "")); httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); Log.d("ers","ENtit "+nameValuePairs.toString()); // Execute HTTP Post Request HttpResponse response = httpclient.execute(httppost, mHttpContext); </code></pre>
    singulars
    1. This table or related slice is empty.
    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. VO
      singulars
      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