/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1990-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
/*
* File: ifs_httpcs.c
*/
#include "ifs_agent.h"
#include <stdio.h>
struct {
int version;
} HttpData;
/*
*name: HttpConvert
* create a file of reference entries from the HTML document.
*/
int
char *srcfile;
char *htmlfile;
char *linkfile;
{
int len;
int textflag = 0;
return -1;
}
return -1;
}
return -1;
}
/* parse header */
break;
textflag = 1;
}
if( textflag ) {
/* parse htmlfile */
p1++;
*p2++ = '\0';
/* <a href="..."> */
}
}
} else {
/* dump binary data */
}
return 0;
}
/*
*name: HttpXfer
* transfer a file from web server
*/
int
struct server_info *srv;
char *rpath;
char *linkfile;
char *tmpfile;
{
port = 80;
logit( "<http>: tmpfile open error\n" );
return -1;
}
logit( "<http>: connect error\n" );
return -1;
}
#if 0 /* -------- ignore this feature -------- */
/* If-Modified-Since: <Last-Modified> */
debug_logit( buf );
break;
}
}
}
#endif
/* Cookie: <cookie-value> */
debug_logit( buf );
}
ptr = "Accept: */*\n\n";
debug_logit( ptr );
/* reply: HTTP/1.0 200 Document follows */
}
}
return ans;
}
/*
*name: HttpXferDir
* transfer URL as a directory
*/
int
struct server_info *srv;
char *tmpfile;
{
int ans;
return 404; /* 404 Not Found */
}
}
return ans;
}
/*
*name: HttpXferFile
* transfer URL as a text file
*/
int
struct server_info *srv;
char *tmpfile;
{
char *ptr;
int ans;
return -1;
*ptr = '\0';
*ptr = '/';
}
return ans;
}
/*
*name: HttpGetFile
* validate a URL file
*/
int
struct server_info *srv;
{
int ans;
/* try get the directory html file (.../index.html) */
*ptr = '\0';
*ptr = '\0';
}
} else {
return -1;
}
}
}
/*
*name: HttpUserDef
* (ex: Cookie ...)
*/
int
struct server_info *srv;
int argc;
char *argv[];
{
if( argc < 2 ) {
return 0;
}
} else {
}
} else {
}
} else {
}
return 0;
}
int
HttpNop()
{
return 0;
}
int
struct agent_item *tbl;
{
return 0;
}