Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 96 lines (84 sloc) 3.055 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 %%%
5d10a86 @nniclausse add explicit exception in the GPL for linking EPL modules (obvious, but ...
nniclausse authored
19 %%% In addition, as a special exception, you have the permission to
20 %%% link the code of this program with any library released under
21 %%% the EPL license and distribute linked combinations including
22 %%% the two.
23
93f6bab @nniclausse MAJOR update:
nniclausse authored
24
25 -vc('$Id$ ').
41e965d @nniclausse update email
nniclausse authored
26 -author('nicolas.niclausse@niclux.org').
93f6bab @nniclausse MAJOR update:
nniclausse authored
27
28 %% use by the client to create the request
65af9b8 @nniclausse MAJOR Update (not yet finished): New configuration system using an XML f...
nniclausse authored
29 -record(http_request, {
30 url,
31 version="1.1", % default is HTTP/1.1
b628eaa @nniclausse - set the Host header during configuration phase
nniclausse authored
32 host_header, % use for the 'Host:' header
c640d11 @nniclausse http: user_agent is now customizable in the xml config file.
nniclausse authored
33 get_ims_date, % used when the method is getims
34 cookie = none,
35 method = get,
36 content_type = [],
37 headers = [],
38 body = [],
e4a3afe @nniclausse www_auth
nniclausse authored
39 id = 0,
c640d11 @nniclausse http: user_agent is now customizable in the xml config file.
nniclausse authored
40 user_agent,
e4a3afe @nniclausse www_auth
nniclausse authored
41 userid, % for www_authentication
73fdc6c @nniclausse add SOAP support, fix bugs in the recorder, more XML attributes entity n...
nniclausse authored
42 passwd, % for www_authentication
43 soap_action % for SOAP support
65af9b8 @nniclausse MAJOR Update (not yet finished): New configuration system using an XML f...
nniclausse authored
44 }).
93f6bab @nniclausse MAJOR update:
nniclausse authored
45
05d07d5 @nniclausse dyndata can hold not only cookies, but also args grabbed from
nniclausse authored
46 -record(http_dyndata,
0b984e7 @nniclausse dyn variables parsed from response (almost finished)
nniclausse authored
47 {
c640d11 @nniclausse http: user_agent is now customizable in the xml config file.
nniclausse authored
48 user_agent,
49 cookies = [] % HTTP Cookies
0b984e7 @nniclausse dyn variables parsed from response (almost finished)
nniclausse authored
50 }
51 ).
05d07d5 @nniclausse dyndata can hold not only cookies, but also args grabbed from
nniclausse authored
52
ed79763 @nniclausse url record
nniclausse authored
53 -record(url,
54 {scheme, %% http, https, ...
55 host,
56 port, %% undefined means use default (80 or 443)
57 path = [],
58 querypart = []}).
59
93f6bab @nniclausse MAJOR update:
nniclausse authored
60 %% use by the client process to store information about the current request during
5382a9c @nniclausse improve HTTP headers functions
nniclausse authored
61 %% the parsing of the response
42b9e61 @nniclausse fix transfer chunked parsing
nniclausse authored
62 -record(http, {content_length= 0, % HTTP header: content length
63 body_size = 0, % current size of body,
64 chunk_toread = -1, % chunk data to be read (-1 = not chunked)
d5f7a79 @nniclausse better handling of closed connection by the server immediately after
nniclausse authored
65 status = none, % HTTP resp. status :200, etc. 'none'
66 % if no current cnx.
ccf403b @nniclausse - new http header parse. Cleaner and faster
nniclausse authored
67 close = false, % true if HTTP/1.0 or 'connection: close'
56735fe @nniclausse improve Cookies support. Host HTTP header is now derived from server or ...
nniclausse authored
68 % has been received
35076ae @nniclausse - add dynamic request substitution (mickael.remond@erlang-fr)
nniclausse authored
69 partial=false, % true if headers are partially received
ccf403b @nniclausse - new http header parse. Cleaner and faster
nniclausse authored
70 cookie=[]
93f6bab @nniclausse MAJOR update:
nniclausse authored
71 }).
72
56735fe @nniclausse improve Cookies support. Host HTTP header is now derived from server or ...
nniclausse authored
73
74 -record(cookie,{
75 key,
76 value,
77 quoted,
78 comment,
79 comment_url,
80 discard,
81 domain,
82 max_age,
83 expires,
84 path,
85 port,
86 secure,
87 version}).
88
93f6bab @nniclausse MAJOR update:
nniclausse authored
89 %% HTTP Protocol
90 -define(GET, "GET").
91 -define(POST, "POST").
5382a9c @nniclausse improve HTTP headers functions
nniclausse authored
92
5345a3b @nniclausse rename idx-tsunami to tsung step 3
nniclausse authored
93 -define(USER_AGENT, "Tsung").
069be48 @nniclausse add check for user agent frequency sum
nniclausse authored
94 -define(USER_AGENT_ERROR_MSG, "Total sum of user agents frequency is not equal to 100").
93f6bab @nniclausse MAJOR update:
nniclausse authored
95
Something went wrong with that request. Please try again.