File:  [parser3project] / parser3 / tests / results / 346-curl.processed
Revision 1.4: download - view: text, annotated - select for diffs - revision graph
Thu Aug 4 17:01:30 2016 UTC (10 years, 1 month ago) by moko
Branches: MAIN
CVS tags: HEAD
more code coverage tests for curl

Content-Type: text/html
Content-Length: 2569

Type: curl,
Source: info,
Comment: outside of 'session' operator
Type: curl,
Source: options,
Comment: outside of 'session' operator
Type: curl,
Source: options,
Comment: outside of 'session' operator
Type: curl,
Source: options,
Comment: failed to set option 'library': already loaded
Type: curl,
Source: options,
Comment: failed to set option 'url': invalid url scheme 'ftp://parser.ru/'
Type: curl,
Source: name,
Comment: is hash, form option value can be string, table or file only
Type: curl,
Source: options,
Comment: failed to set option 'httppost': value must be a hash
Type: curl,
Source: options,
Comment: called with invalid option 'no-such-option'
Type: curl,
Source: info,
Comment: called with invalid parameter 'no-such-info'
{
"size_download":0,
"request_size":0,
"content_type":"",
"effective_url":"",
"header_size":0,
"redirect_time":0,
"appconnect_time":0,
"pretransfer_time":0,
"num_connects":0,
"primary_ip":"",
"speed_upload":0,
"speed_download":0,
"redirect_url":"",
"proxyauth_avail":0,
"starttransfer_time":0,
"connect_time":0,
"namelookup_time":0,
"redirect_count":0,
"httpauth_avail":0,
"total_time":0,
"content_length_download":-1,
"os_errno":0,
"ssl_verifyresult":0,
"response_code":0,
"content_length_upload":-1,
"size_upload":0
}
Parser3 tests (make tests).
Don't delete or modify them.
bytes 4-62/63
Don't delete or modify them.
bytes 33-62/63
text : {
"name":"test.txt",
"size":265,
"mode":"binary",
"content-type":"something\/text",
}
<h3>Headers</h3>
<pre>CONTENT_LENGTH	: 4
CONTENT_TYPE	: application/x-www-form-urlencoded
HTTP_ACCEPT	: */*
HTTP_HOST	: www.parser.ru
HTTP_USER_AGENT	: parser%203
REQUEST_METHOD	: POST
REQUEST_URI	: /_/tests/223.pl
SCRIPT_NAME	: /_/tests/223.pl
SERVER_NAME	: www.parser.ru</pre>
<h3>Body</h3>
<pre>test</pre>
<hr />
binary : {
"name":"223.pl",
"size":255,
"mode":"text",
"content-type":"text\/plain",
}
<h3>Headers</h3>
<pre>CONTENT_LENGTH	: 22
CONTENT_TYPE	: application/x-www-form-urlencoded
HTTP_ACCEPT	: */*
HTTP_HOST	: www.parser.ru
REQUEST_METHOD	: POST
REQUEST_URI	: /_/tests/223.pl
SCRIPT_NAME	: /_/tests/223.pl
SERVER_NAME	: www.parser.ru</pre>
<h3>Body</h3>
<pre>"a"	"b"
"av	av"	"b
v"
</pre>
<hr />
empty post : {
"name":"223.pl",
"size":183,
"mode":"text",
"content-type":"text\/plain",
}
<h3>Headers</h3>
<pre>CONTENT_LENGTH	: 0
HTTP_ACCEPT	: */*
HTTP_HOST	: www.parser.ru
REQUEST_METHOD	: POST
REQUEST_URI	: /_/tests/223.pl
SCRIPT_NAME	: /_/tests/223.pl
SERVER_NAME	: www.parser.ru</pre>
<h3>Body</h3>
<pre></pre>
<hr />
Type: curl.host,
Source: load,
Comment: Couldn't resolve host name

E-mail: