Skip to content
Newer
Older
100644 103 lines (90 sloc) 3.4 KB
93f6bab @nniclausse MAJOR update:
nniclausse authored Feb 3, 2003
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.
74b91db @nniclausse tabs/space
nniclausse authored Oct 15, 2007
18 %%%
5d10a86 @nniclausse add explicit exception in the GPL for linking EPL modules (obvious, b…
nniclausse authored Aug 10, 2004
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 Feb 3, 2003
24
25 -vc('$Id$ ').
41e965d @nniclausse update email
nniclausse authored Nov 27, 2005
26 -author('nicolas.niclausse@niclux.org').
93f6bab @nniclausse MAJOR update:
nniclausse authored Feb 3, 2003
27
28 %% use by the client to create the request
65af9b8 @nniclausse MAJOR Update (not yet finished): New configuration system using an XM…
nniclausse authored Dec 12, 2003
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 Jul 19, 2005
32 host_header, % use for the 'Host:' header
c640d11 @nniclausse http: user_agent is now customizable in the xml config file.
nniclausse authored Jul 11, 2005
33 get_ims_date, % used when the method is getims
34e4b3d @nniclausse option to manually add a cookie in http requests (TSUN-111)
nniclausse authored Feb 22, 2009
34 cookie = [],
c640d11 @nniclausse http: user_agent is now customizable in the xml config file.
nniclausse authored Jul 11, 2005
35 method = get,
36 content_type = [],
37 headers = [],
38 body = [],
e4a3afe @nniclausse www_auth
nniclausse authored Jan 21, 2004
39 id = 0,
c640d11 @nniclausse http: user_agent is now customizable in the xml config file.
nniclausse authored Jul 11, 2005
40 user_agent,
e4a3afe @nniclausse www_auth
nniclausse authored Jan 21, 2004
41 userid, % for www_authentication
73fdc6c @nniclausse add SOAP support, fix bugs in the recorder, more XML attributes entit…
nniclausse authored Mar 18, 2004
42 passwd, % for www_authentication
43 soap_action % for SOAP support
65af9b8 @nniclausse MAJOR Update (not yet finished): New configuration system using an XM…
nniclausse authored Dec 12, 2003
44 }).
93f6bab @nniclausse MAJOR update:
nniclausse authored Feb 3, 2003
45
74b91db @nniclausse tabs/space
nniclausse authored Oct 15, 2007
46 -record(http_dyndata,
47 {
c640d11 @nniclausse http: user_agent is now customizable in the xml config file.
nniclausse authored Jul 11, 2005
48 user_agent,
49 cookies = [] % HTTP Cookies
0b984e7 @nniclausse dyn variables parsed from response (almost finished)
nniclausse authored Apr 16, 2004
50 }
51 ).
05d07d5 @nniclausse dyndata can hold not only cookies, but also args grabbed from
nniclausse authored Apr 1, 2004
52
ed79763 @nniclausse url record
nniclausse authored Nov 17, 2003
53 -record(url,
74b91db @nniclausse tabs/space
nniclausse authored Oct 15, 2007
54 {scheme, %% http, https, ...
55 host,
56 port, %% undefined means use default (80 or 443)
57 path = [],
58 querypart = []}).
ed79763 @nniclausse url record
nniclausse authored Nov 17, 2003
59
74b91db @nniclausse tabs/space
nniclausse authored Oct 15, 2007
60 %% use by the client process to store information about the current request during
5382a9c @nniclausse improve HTTP headers functions
nniclausse authored Feb 17, 2003
61 %% the parsing of the response
42b9e61 @nniclausse fix transfer chunked parsing
nniclausse authored Dec 16, 2003
62 -record(http, {content_length= 0, % HTTP header: content length
74b91db @nniclausse tabs/space
nniclausse authored Oct 15, 2007
63 body_size = 0, % current size of body,
96dcaf9 @nniclausse API plugin update: add decode_buffer/2 fun. Implemented in http for
nniclausse authored Sep 1, 2010
64 chunk_toread = -1, % chunk data to be read (-1 = not chunked, -2 = not chunked, but last response was)
de4f702 @nniclausse wip: add 'protocol' logging, only implemented for HTTP currently (TSU…
nniclausse authored Sep 2, 2010
65 status = {none,none}, % HTTP resp. status :200, etc. 'none'
d5f7a79 @nniclausse better handling of closed connection by the server immediately after
nniclausse authored Dec 23, 2003
66 % if no current cnx.
74b91db @nniclausse tabs/space
nniclausse authored Oct 15, 2007
67 close = false, % true if HTTP/1.0 or 'connection: close'
56735fe @nniclausse improve Cookies support. Host HTTP header is now derived from server …
nniclausse authored Feb 16, 2004
68 % has been received
74b91db @nniclausse tabs/space
nniclausse authored Oct 15, 2007
69 partial=false, % true if headers are partially received
96dcaf9 @nniclausse API plugin update: add decode_buffer/2 fun. Implemented in http for
nniclausse authored Sep 1, 2010
70 compressed={false,false}, % type of compression if body is compressed
74b91db @nniclausse tabs/space
nniclausse authored Oct 15, 2007
71 cookie=[]
72 }).
93f6bab @nniclausse MAJOR update:
nniclausse authored Feb 3, 2003
73
56735fe @nniclausse improve Cookies support. Host HTTP header is now derived from server …
nniclausse authored Feb 16, 2004
74
75 -record(cookie,{
74b91db @nniclausse tabs/space
nniclausse authored Oct 15, 2007
76 key,
77 value,
78 quoted,
79 comment,
80 comment_url,
81 discard,
82 domain,
83 max_age,
84 expires,
85 path,
86 port,
87 secure,
88 version}).
56735fe @nniclausse improve Cookies support. Host HTTP header is now derived from server …
nniclausse authored Feb 16, 2004
89
93f6bab @nniclausse MAJOR update:
nniclausse authored Feb 3, 2003
90 %% HTTP Protocol
91 -define(GET, "GET").
92 -define(POST, "POST").
c138ea1 @nniclausse Add support for HEAD, PUT and DELETE method for HTTP. Fix for TSUN-22
nniclausse authored Aug 8, 2006
93 -define(PUT, "PUT").
94 -define(HEAD, "HEAD").
95 -define(DELETE, "DELETE").
1fe17e0 @nniclausse improve webdav plugin (TSUN-61). Works with litmus.
nniclausse authored Apr 1, 2008
96 -define(OPTIONS, "OPTIONS").
5382a9c @nniclausse improve HTTP headers functions
nniclausse authored Feb 17, 2003
97
5345a3b @nniclausse rename idx-tsunami to tsung step 3
nniclausse authored Nov 27, 2005
98 -define(USER_AGENT, "Tsung").
069be48 @nniclausse add check for user agent frequency sum
nniclausse authored Aug 9, 2005
99 -define(USER_AGENT_ERROR_MSG, "Total sum of user agents frequency is not equal to 100").
93f6bab @nniclausse MAJOR update:
nniclausse authored Feb 3, 2003
100
96dcaf9 @nniclausse API plugin update: add decode_buffer/2 fun. Implemented in http for
nniclausse authored Sep 1, 2010
101 -define(MAX_HEADER_SIZE, 65536). % used for http_chunk:decode
102
Something went wrong with that request. Please try again.