Hi,
I have written a simple program to try to move to a new page on a website (eg Yahoo) as follows:-

URL site = new URL ("<eg Yahoo website address>");
DataInputStream ins = new DataInputStream (site.openStream());
String inString = "";
URLConnection connection = site.openConnection();
connection.setDoOutput(true);
PrintWriter out = new PrintWriter(
connection.getOutputStream());

while ((inString = ins.readLine()) != null)
{
System.out.println(inString);
}

out.println("Mobile"); // the title of another yahoo page
out.close();

while ((inString = ins.readLine()) != null)
{
inString = ins.readLine();
System.out.println(inString);
}

This program reads the opening page - I was hoping that the
out.println ("Mobile") might be enough to get the server to post the yahoo
mobile page contents but its not.

Can anyone inform if this is possible and what I need to change to get it
get to another yahoo page.

Thanks