> Could someone put together a small exe which will just request the url
>  http://freenet.sourceforge.net/inform.php?remove=1 ?

Available at http://m1.aol.com/cachemiss/UnReg.java in case it gets mangled 
in transit.

Could someone please add the necessary GPL messages and such to it?  I'm 
unfamiliar with that.

Also, fserve spews this upon loading, now:

.freenet/store_19114
java.net.UnknownHostException: 192.168.72.98, 130.206.72.205
        at java.net.InetAddress.getAllByName0(InetAddress.java:577)
        at java.net.InetAddress.getAllByName0(InetAddress.java:546)
        at java.net.InetAddress.getByName(InetAddress.java:478)
        at Freenet.tcpAddress.<init>(tcpAddress.java:52)
        at java.lang.reflect.Constructor.newInstance(Native Method)
        at Freenet.Address.<init>(Address.java:33)
        at Freenet.node.Node.main(Node.java, Compiled Code)

It's complaining about this line from inform.php:

    tcp/192.168.72.98, 130.206.72.205:19114

-cm



/*****************************************************************************
*
* 
*    File : UnReg.java
*  Author : Lee Benjamin Burhans <cachemiss at aol.com>
*    Date : Apr 14, 2000
* Purpose : Request the unregister script at
*           http://freenet.sourceforge.net/inform.php?remove=1
* 
******************************************************************************
/

import java.net.*;

public class UnReg
    {
    public static void main(String [] args)
        {
        HttpURLConnection http;
        String url;
        int ret;

        if (args.length == 1)
            {
            url = args[0];            
            }
        else
            {
            url = "http://freenet.sourceforge.net/inform.php?remove=1";;
            }

        System.out.println("Requesting " + url);

        try
            {
            http = (HttpURLConnection) new URL(url).openConnection();

            http.connect();
            ret = http.getResponseCode();

            switch (ret)
                {
                case HttpURLConnection.HTTP_OK: 
                    {
                    System.out.println("OK (" + ret + ")");
                    break;
                    }
                default:
                    {
                    System.out.println("Failed (" + ret + ")");
                    break;
                    }
                }

            http.disconnect();
            }
        catch (Exception e)
            {
            System.out.println("Exception: " + e.getMessage());
            }
        }
    }

/* eof 
***********************************************************************/

_______________________________________________
Freenet-dev mailing list
Freenet-dev at lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/freenet-dev

Reply via email to