[...]
> do
> {
[quoted text clipped - 5 lines]
> output+= x;
> } while (c!=1 && i < 5000);
[...]
Perhaps you mean to compare against -1 instead of 1?
[...]
> String hashedpw = getMD5Hash("mypass");
> String challenge = getChallenge();
> String md5pw = getMD5Hash(hashedpw + challenge);
Since you didn't provide the getChallenge or getMD5Hash method, it's
difficult to help you. I asked you for an SSCCE, not a code snippet.
> String nextt = URLEncoder.encode("http://facebook.com/home.php");
> System.out.println("aok");
[quoted text clipped - 4 lines]
> PrintWriter(new
> OutputStreamWriter(conn.getOutputStream(),"8859_1"),true);
You cannot write to a URLConnection if doOutput=false - call
setDoOutput(true)
[...]
> } catch(Exception e){}
When debugging a problem, don't silently swallow exceptions.
- Oliver
Lew - 24 May 2007 20:51 GMT
> <mfasoccer@gmail.com> wrote in message
>> } catch(Exception e){}
>
> When debugging a problem, don't silently swallow exceptions.
When running in production, don't silently swallow exceptions either.
Log them using a logging library (java.util.logging, org.apache,log4j); set
the output to the appropriate logging level (e.g., "DEBUG") to avoid runtime
overhead when it isn't necessary.

Signature
Lew