Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 47 lines (39 sloc) 1.72 kB
93f6bab @nniclausse MAJOR update:
nniclausse authored
1 %%% This code was developped by IDEALX (http://IDEALX.org/) and
2 %%% contributors (their names can be found in the CONTRIBUTORS file).
3 %%% Copyright (C) 2000-2001 IDEALX
4 %%%
5 %%% This program is free software; you can redistribute it and/or modify
6 %%% it under the terms of the GNU General Public License as published by
7 %%% the Free Software Foundation; either version 2 of the License, or
8 %%% (at your option) any later version.
9 %%%
10 %%% This program is distributed in the hope that it will be useful,
11 %%% but WITHOUT ANY WARRANTY; without even the implied warranty of
12 %%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 %%% GNU General Public License for more details.
14 %%%
15 %%% You should have received a copy of the GNU General Public License
16 %%% along with this program; if not, write to the Free Software
17 %%% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
18 %%%
19
20 -vc('$Id$ ').
21 -author('nicolas.niclausse@IDEALX.com').
22
23 %% use by the client to create the request
24 -record(http_request, {url, cookie=none, method=get, body=[], id = 0 }).
25
ed79763 @nniclausse url record
nniclausse authored
26 -record(url,
27 {scheme, %% http, https, ...
28 host,
29 port, %% undefined means use default (80 or 443)
30 path = [],
31 querypart = []}).
32
93f6bab @nniclausse MAJOR update:
nniclausse authored
33 %% use by the client process to store information about the current request during
5382a9c @nniclausse improve HTTP headers functions
nniclausse authored
34 %% the parsing of the response
93f6bab @nniclausse MAJOR update:
nniclausse authored
35 -record(http, {content_length= 0, % HTTP header: content length
36 body_size = 0, % current size of body,
04e2ec8 @nniclausse - split http_common in 2 : one for parsing http and one for parsing h…
nniclausse authored
37 chunk_toread = 0, % chunk data to be read
5382a9c @nniclausse improve HTTP headers functions
nniclausse authored
38 status = none % HTTP resp. status :200, etc. 'none' if no current cnx.
93f6bab @nniclausse MAJOR update:
nniclausse authored
39 }).
40
41 %% HTTP Protocol
42 -define(GET, "GET").
43 -define(POST, "POST").
5382a9c @nniclausse improve HTTP headers functions
nniclausse authored
44
45 -define(USER_AGENT, "IDX-Tsunami").
93f6bab @nniclausse MAJOR update:
nniclausse authored
46
Something went wrong with that request. Please try again.