com.croftsoft.core.net.http
Class HttpLib

java.lang.Object
  extended by com.croftsoft.core.net.http.HttpLib

public final class HttpLib
extends Object

HTTP operations.

Since:
1999-12-19
Version:
2003-06-05
Author:
David Wallace Croft

Field Summary
static String APPLICATION_OCTET_STREAM
           
 
Method Summary
static void main(String[] args)
           
static int post(String host, int port, String path, String userAgent, byte[] bytes)
           
static int post(String host, int port, String path, String userAgent, String contentType, byte[] bytes)
           
static int post(String host, String path, byte[] bytes)
           
static Object post(URL url, byte[] bytes, String userAgent, String contentType, Parser parser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APPLICATION_OCTET_STREAM

public static final String APPLICATION_OCTET_STREAM
See Also:
Constant Field Values
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

post

public static Object post(URL url,
                          byte[] bytes,
                          String userAgent,
                          String contentType,
                          Parser parser)
                   throws IOException
Throws:
IOException

post

public static int post(String host,
                       String path,
                       byte[] bytes)
                throws IOException
Throws:
IOException

post

public static int post(String host,
                       int port,
                       String path,
                       String userAgent,
                       byte[] bytes)
                throws IOException
Throws:
IOException

post

public static int post(String host,
                       int port,
                       String path,
                       String userAgent,
                       String contentType,
                       byte[] bytes)
                throws IOException
Throws:
IOException

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)