Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 56 lines (48 sloc) 1.945 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
65af9b8 @nniclausse MAJOR Update (not yet finished): New configuration system using an XM…
nniclausse authored
24 -record(http_request, {
25 url,
26 version="1.1", % default is HTTP/1.1
27 server_name, % use for the 'Host:' header
28 get_ims_date = none, % used when the method is getims
29 cookie=none,
30 method=get,
31 body=[],
32 id = 0
33 }).
93f6bab @nniclausse MAJOR update:
nniclausse authored
34
ed79763 @nniclausse url record
nniclausse authored
35 -record(url,
36 {scheme, %% http, https, ...
37 host,
38 port, %% undefined means use default (80 or 443)
39 path = [],
40 querypart = []}).
41
93f6bab @nniclausse MAJOR update:
nniclausse authored
42 %% use by the client process to store information about the current request during
5382a9c @nniclausse improve HTTP headers functions
nniclausse authored
43 %% the parsing of the response
93f6bab @nniclausse MAJOR update:
nniclausse authored
44 -record(http, {content_length= 0, % HTTP header: content length
45 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
46 chunk_toread = 0, % chunk data to be read
5382a9c @nniclausse improve HTTP headers functions
nniclausse authored
47 status = none % HTTP resp. status :200, etc. 'none' if no current cnx.
93f6bab @nniclausse MAJOR update:
nniclausse authored
48 }).
49
50 %% HTTP Protocol
51 -define(GET, "GET").
52 -define(POST, "POST").
5382a9c @nniclausse improve HTTP headers functions
nniclausse authored
53
54 -define(USER_AGENT, "IDX-Tsunami").
93f6bab @nniclausse MAJOR update:
nniclausse authored
55
Something went wrong with that request. Please try again.