Logo Search packages:      
Sourcecode: sofia-sip version File versions

http-client.c File Reference


Detailed Description

Simple HTTP tool.

Author:
Pekka Pessi <Pekka.Pessi@nokia.com>.
Date:
Created: Fri Mar 30 12:05:21 2001 ppessi

Definition in file http-client.c.

#include "config.h"
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <sofia-sip/nth.h>
#include <sofia-sip/http_header.h>
#include <sofia-sip/http_tag.h>
#include <sofia-sip/tport_tag.h>
#include <sofia-sip/auth_client.h>

Go to the source code of this file.

Classes

struct  context_s

Defines

#define MATCH(s, o)   ((strcmp(s, o) == 0))
#define MATCH1(s, o)
#define MATCH2(s, o)
#define NTH_CLIENT_MAGIC_T   context_t

Typedefs

typedef struct context_s context_t

Functions

static int header_print (FILE *stream, char const *fmt, http_header_t const *h)
int main (int argc, char *argv[])
static int payload_print (FILE *stream, msg_payload_t const *pl)
static char * read_file (FILE *stream)
static int response (context_t *context, nth_client_t *oreq, http_t const *http)
static void usage (int rc)

Variables

char const _usage []
static char const name [] = "http-client"


Generated by  Doxygen 1.6.0   Back to index