File:  [parser3project] / parser3 / tests / 367-curl.html
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Thu Nov 24 20:20:32 2016 UTC (9 years, 6 months ago) by moko
Branches: MAIN
CVS tags: release_3_5_1, release_3_5_0, release_3_4_6, release_3_4_5, HEAD
test for previous request headers clearing after redirect added (related to bug #1109)

@main[]
^curl:session{
	$response[^curl:load[
		$.url[http://www.parser.ru/_/tests/367.html?redirect=yes]
		$.followlocation(true)
	]]

	$max(0)
	^response.tables.foreach[;header]{ ^if($header>$max){$max($header)} }

	text: $response.text ($response.size bytes)
	name: $response.name
	charset: $response.content-type
	max identical headers: $max
	url: ^curl:info[effective_url] after ^curl:info[num_connects] requests (^curl:info[redirect_count] redirect)
}

E-mail: