/*
* Copyright 2002 Perceptive Informatics, Inc.,
* All Rights Reserved.
*
* This software is the confidential and proprietary information of
* Perceptive Informatics, Inc. ("Confidential Information"). You
* shall not disclose such Confidential Information and shall use it
* only in accordance with the terms of the license agreement you
* entered into with Perceptive.
*
* $Revision: $
* $Author: $
* Reviewed Revision
*/
package com.perceptive;
import java.net.URLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
/** Class that will open a web page.
* This is useful for testing when the test needs to open
* a page on a web server to initialize some resources
*/
public final class WebPageConnector
{
private static final String SERVER = "http://172.24.116.100";
/** Command line entry point.
*
* @param args First arg must be the URL to open. all args after that can be the
* name=value pairs to include in the URL.
* Must not be null
.
*/
public static void go( String[] args ) throws IOException
{
String url = args[0] + "?";
for( int i=1; i