Skip to content

Commit

Permalink
restoring what is in http-tiny-1.2.tar.gz
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly committed Jul 25, 2017
1 parent 11ebe61 commit cca57c7
Show file tree
Hide file tree
Showing 18 changed files with 1,168 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# (c)1998 Laurent Demailly
# (c)1996 Observatoire de Paris
#
# $Id: Makefile,v 1.1 1998/09/23 05:39:40 dl Exp dl $
# $Id: Makefile,v 1.2 1998/09/23 06:17:55 dl Exp $
#
#

Expand Down
61 changes: 61 additions & 0 deletions http-man.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@



HTTP(1) dl's free utilities HTTP(1)
V1.2 - 24 Apr 1996



NAME
http - perform HTTP queries from command line


SYNOPSIS
http <get|head|put|delete> <url>


DESCRIPTION
http is a tool to perform HTTP queries from the command line.
Informations and diagnostic goes to stderr. Data is taken from stdin
(for put) or output to stdout (for get). If the environement variable
http_proxy exists it will be used as a proxy url.

The following commands are supported

get to send an http GET query. It fetches the given url to standard
output.

head gets the header only of the url.

put to send an http PUT query (not recognized by all servers). It
reads data from standard input and then send them to the server.

delete
to send an http DELETE query (not recognized by all servers).


LIMITATIONS
The url is limited to 256 characters.


EXAMPLE
http get http://www.demailly.com/~dl/wwwtools.html > wwwtools.html


AUTHOR
Laurent Demailly <[email protected]>. Free software.
(See LICENSE file)


SEE ALSO
http_lib(3)






- 1 - Formatted: April 24, 1996



7 changes: 5 additions & 2 deletions http.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
* (c) 1996 Observatoire de Paris - Meudon - France
* see LICENSE for terms, conditions and DISCLAIMER OF ALL WARRANTIES
*
* $Id: http.c,v 1.3 1998/09/23 06:03:45 dl Exp dl $
* $Id: http.c,v 1.4 1998/09/23 06:11:55 dl Exp $
*
* $Log: http.c,v $
* Revision 1.4 1998/09/23 06:11:55 dl
* one more lint
*
* Revision 1.3 1998/09/23 06:03:45 dl
* proxy support (old change which was not checked in back in 96)
* contact, etc.. infos update
Expand All @@ -21,7 +24,7 @@
*/


static char *rcsid="$Id: http.c,v 1.3 1998/09/23 06:03:45 dl Exp dl $";
static char *rcsid="$Id: http.c,v 1.4 1998/09/23 06:11:55 dl Exp $";


#include <sys/types.h>
Expand Down
61 changes: 61 additions & 0 deletions http.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<HTML>
<HEAD>
<TITLE>http(1) manual page</TITLE>
</HEAD>
<BODY>
<H2>NAME</H2>

http - perform HTTP queries from command line
<P>

<H2>SYNOPSIS</H2>

<B>http</B> &lt;<I>get</I>|<I>head</I>|<I>put</I>|<I>delete</I>&gt; &lt;<B>url</B>&gt;
<P>

<H2>DESCRIPTION</H2>

<B>http</B> is a tool to perform HTTP queries from the command line.
Informations and diagnostic goes to stderr. Data is taken from stdin
(for <I>put</I>) or output to stdout (for <I>get</I>).
If the environement variable <b>http_proxy</b> exists it will be used as a
proxy url.
<P>
The following commands are supported
<P>
<I>get</I> to send an http GET query. It fetches the given <B>url</B> to standard
output.
<P>
<I>head</I> gets the header only of the <B>url</B>.
<P>
<I>put</I> to send an http PUT query (not recognized by all servers). It
reads data from standard input and then send them to the server.
<P>
<I>delete</I><BR>

to send an http DELETE query (not recognized by all servers).
<P>

<H2>LIMITATIONS</H2>

The url is limited to 256 characters.
<P>

<H2>EXAMPLE</H2>

http get http://www.demailly.com/~dl/wwwtools.html &gt; wwwtools.html
<P>

<H2>AUTHOR</H2>

<a href="http://www.demailly.com/~dl/">Laurent Demailly</a>
&lt;[email protected]&gt;. Free software.
<br>
(See LICENSE file)
<P>

<H2>SEE ALSO</H2>

<A HREF="http_lib.html">http_lib(3)</A>
<P>
</BODY></HTML>
9 changes: 6 additions & 3 deletions http_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@
* (c) 1996 Observatoire de Paris - Meudon - France
* see LICENSE for terms, conditions and DISCLAIMER OF ALL WARRANTIES
*
* $Id: http_lib.c,v 3.4 1998/09/23 05:44:27 dl Exp dl $
* $Id: http_lib.c,v 3.5 1998/09/23 06:19:15 dl Exp $
*
* Description : Use http protocol, connects to server to echange data
*
* $Log: http_lib.c,v $
* Revision 3.5 1998/09/23 06:19:15 dl
* portability and http 1.x (1.1 and later) compatibility
*
* Revision 3.4 1998/09/23 05:44:27 dl
* added support for HTTP/1.x answers
*
Expand All @@ -28,7 +31,7 @@
*
*/

static char *rcsid="$Id: http_lib.c,v 3.4 1998/09/23 05:44:27 dl Exp dl $";
static char *rcsid="$Id: http_lib.c,v 3.5 1998/09/23 06:19:15 dl Exp $";

#define VERBOSE

Expand Down Expand Up @@ -77,7 +80,7 @@ char *http_proxy_server=NULL;
/* proxy server port number or 0 */
int http_proxy_port=0;
/* user agent id string */
static char *http_user_agent="adlib/3 ($Date: 1998/09/23 05:44:27 $)";
static char *http_user_agent="adlib/3 ($Date: 1998/09/23 06:19:15 $)";

/*
* read a line from file descriptor
Expand Down
2 changes: 1 addition & 1 deletion http_lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* (c) 1996 Observatoire de Paris - Meudon - France
* see LICENSE for terms, conditions and DISCLAIMER OF ALL WARRANTIES
*
* $Id: http_lib.h,v 1.3 1996/04/24 13:55:49 dl Exp dl $
* $Id: http_lib.h,v 1.4 1998/09/23 06:14:15 dl Exp $
*
*/

Expand Down
Loading

0 comments on commit cca57c7

Please sign in to comment.