version	U12.1.00
uid	vhttp.u1-1786032998-0
impl	error
link	cfunc.u
global	10
	0,000001,vhttp_agent,0
	1,000001,vhttp_from,0
	2,000005,vhttp,1
	3,000005,vhttp_contact,3
	4,000005,vhttp_waitclock,1
	5,000001,vhttp_htable,0
	6,000001,vhttp_hfile,0
	7,000005,vhttp_inithist,0
	8,000005,vhttp_histval,1
	9,000005,vhttp_addhist,2

proc vhttp
	local	0,001000,url
	local	1,000020,protocol
	local	2,000020,host
	local	3,000020,port
	local	4,000020,path
	local	5,000020,result
	local	6,000000,vhttp_inithist
	local	7,000000,vhttp_agent
	local	8,000000,map
	local	9,000000,tab
	local	10,000000,upto
	local	11,000000,many
	local	12,000000,pos
	local	13,000000,vhttp_histval
	local	14,000000,vhttp_contact
	local	15,000000,vhttp_addhist
	con	0,010000,9,166,150,164,164,160,056,151,143,156
	con	1,020000,1,072
	con	2,010000,4,150,164,164,160
	con	3,010000,3,072,057,057
	con	4,020000,2,057,072
	con	5,002000,1,0
	con	6,010000,1,072
	con	7,002000,2,80
	con	8,010000,1,057
	declend
	filen	vhttp.icn
	line	113
	colm	11
	synt	any
lab L1
	init	L3
	mark	L2
	var	6
	line	115
	colm	26
	synt	any
	invoke	0
	unmark
lab L2
	einit	L1
lab L3
	mark	L4
	pnull
	pnull
	var	7
	line	117
	colm	4
	synt	any
	null
	str	0
	line	117
	colm	17
	synt	any
	asgn
	unmark
lab L4
	mark	L5
	var	0
	line	118
	colm	8
	synt	any
	bscan
	mark	L6
	pnull
	var	1
	mark	L7
	var	8
	var	9
	var	10
	cset	1
	line	119
	colm	31
	synt	any
	invoke	1
	line	119
	colm	26
	synt	any
	invoke	1
	line	119
	colm	22
	synt	any
	invoke	1
	line	119
	colm	41
	synt	any
	esusp
	goto	L8
lab L7
	line	119
	colm	43
	synt	any
	pfail
lab L8
	line	119
	colm	16
	synt	any
	asgn
	unmark
lab L6
	mark	L9
	mark	L10
	pnull
	var	1
	str	2
	line	120
	colm	16
	synt	any
	lexeq
	line	120
	colm	41
	synt	any
	esusp
	goto	L11
lab L10
	line	120
	colm	43
	synt	any
	pfail
lab L11
	unmark
lab L9
	mark	L12
	mark	L13
	pnull
	str	3
	line	121
	colm	7
	synt	any
	tabmat
	line	121
	colm	41
	synt	any
	esusp
	goto	L14
lab L13
	line	121
	colm	43
	synt	any
	pfail
lab L14
	unmark
lab L12
	mark	L15
	pnull
	var	2
	mark	L16
	var	8
	var	9
	mark	L18
	var	10
	cset	4
	line	122
	colm	27
	synt	any
	invoke	1
	line	122
	colm	34
	synt	any
	esusp
	goto	L19
lab L18
	int	5
lab L19
	line	122
	colm	22
	synt	any
	invoke	1
	line	122
	colm	18
	synt	any
	invoke	1
	line	122
	colm	41
	synt	any
	esusp
	goto	L17
lab L16
	line	122
	colm	43
	synt	any
	pfail
lab L17
	line	122
	colm	12
	synt	any
	asgn
	unmark
lab L15
	mark	L20
	line	123
	colm	7
	synt	ifelse
	mark	L21
	pnull
	str	6
	line	123
	colm	10
	synt	any
	tabmat
	unmark
	pnull
	var	3
	mark	L23
	var	9
	var	11
	line	124
	colm	27
	synt	any
	keywd	digits
	line	124
	colm	26
	synt	any
	invoke	1
	line	124
	colm	21
	synt	any
	invoke	1
	line	124
	colm	41
	synt	any
	esusp
	goto	L24
lab L23
	line	124
	colm	43
	synt	any
	pfail
lab L24
	line	124
	colm	15
	synt	any
	asgn
	goto	L22
lab L21
	pnull
	var	3
	int	7
	line	126
	colm	15
	synt	any
	asgn
lab L22
	line	123
	colm	7
	synt	endifelse
	unmark
lab L20
	line	127
	colm	7
	synt	ifelse
	mark	L25
	var	12
	int	5
	line	127
	colm	13
	synt	any
	invoke	1
	unmark
	pnull
	var	4
	str	8
	line	128
	colm	15
	synt	any
	asgn
	goto	L26
lab L25
	pnull
	var	4
	var	9
	int	5
	line	130
	colm	21
	synt	any
	invoke	1
	line	130
	colm	15
	synt	any
	asgn
lab L26
	line	127
	colm	7
	synt	endifelse
	line	118
	colm	8
	synt	any
	escan
	unmark
lab L5
	mark	L27
	line	133
	colm	4
	synt	if
	mark0
	pnull
	var	5
	var	13
	var	0
	line	133
	colm	30
	synt	any
	invoke	1
	line	133
	colm	14
	synt	any
	asgn
	unmark
	mark	L28
	var	5
	line	134
	colm	7
	synt	any
	pret
lab L28
	synt	any
	pfail
	line	133
	colm	4
	synt	endif
	unmark
lab L27
	mark	L29
	pnull
	var	5
	var	14
	var	2
	var	3
	var	4
	line	136
	colm	27
	synt	any
	invoke	3
	line	136
	colm	11
	synt	any
	asgn
	unmark
lab L29
	mark	L30
	var	15
	var	0
	var	5
	line	137
	colm	17
	synt	any
	invoke	2
	unmark
lab L30
	mark	L31
	mark	L32
	var	5
	line	138
	colm	4
	synt	any
	pret
lab L32
	synt	any
	pfail
	unmark
lab L31
	pnull
	line	139
	colm	1
	synt	any
	pfail
	end
proc vhttp_contact
	local	0,001000,host
	local	1,001000,port
	local	2,001000,path
	local	3,000020,f
	local	4,000020,line
	local	5,000020,hostport
	local	6,000040,deadhosts
	local	7,000000,set
	local	8,000000,member
	local	9,000000,vhttp_waitclock
	local	10,000000,tconnect
	local	11,000000,insert
	local	12,000000,write
	local	13,000000,vhttp_agent
	local	14,000000,vhttp_from
	local	15,000000,flush
	local	16,000000,seek
	local	17,000000,fpoll
	local	18,000000,close
	local	19,000000,read
	local	20,000000,tab
	local	21,000000,many
	local	22,000000,trim
	con	0,010000,1,072
	con	1,010000,21,065,065,061,040,103,157,156,156,145,143,164,151,157,156,040,106,141,151,154,145,144
	con	2,010000,5,110,105,101,104,040
	con	3,010000,9,040,110,124,124,120,057,061,056,060
	con	4,010000,12,125,163,145,162,055,141,147,145,156,164,072,040
	con	5,010000,6,106,162,157,155,072,040
	con	6,002000,1,1
	con	7,002000,2,60
	con	8,002000,4,1000
	con	9,010000,15,065,065,070,040,116,157,040,122,145,163,160,157,156,163,145
	con	10,010000,18,065,065,071,040,105,155,160,164,171,040,122,145,163,160,157,156,163,145
	con	11,020000,1,040
	con	12,010000,5,110,124,124,120,057
	con	13,020000,11,061,062,063,064,065,056,066,067,070,071,060
	con	14,002000,1,0
	con	15,020000,6,040,011,015,012,013,014
	declend
	line	145
	colm	11
	synt	any
lab L1
	init	L3
	mark	L2
	pnull
	var	6
	var	7
	line	148
	colm	28
	synt	any
	invoke	0
	line	148
	colm	22
	synt	any
	asgn
	unmark
lab L2
	einit	L1
lab L3
	mark	L4
	pnull
	var	5
	pnull
	pnull
	var	0
	str	0
	line	150
	colm	21
	synt	any
	cat
	var	1
	line	150
	colm	28
	synt	any
	cat
	line	150
	colm	13
	synt	any
	asgn
	unmark
lab L4
	mark	L5
	line	152
	colm	4
	synt	if
	mark0
	var	8
	var	6
	var	5
	line	152
	colm	13
	synt	any
	invoke	2
	unmark
	mark	L6
	str	1
	line	153
	colm	7
	synt	any
	pret
lab L6
	synt	any
	pfail
	line	152
	colm	4
	synt	endif
	unmark
lab L5
	mark	L7
	var	9
	var	0
	line	155
	colm	19
	synt	any
	invoke	1
	unmark
lab L7
	mark	L8
	line	157
	colm	4
	synt	if
	mark0
	mark	L9
	pnull
	var	3
	var	10
	var	0
	var	1
	line	157
	colm	25
	synt	any
	invoke	2
	line	157
	colm	14
	synt	any
	asgn
	unmark
	efail
lab L9
	pnull
	unmark
	mark	L10
	var	11
	var	6
	var	5
	line	158
	colm	13
	synt	any
	invoke	2
	unmark
lab L10
	mark	L11
	str	1
	line	159
	colm	7
	synt	any
	pret
lab L11
	synt	any
	pfail
	line	157
	colm	4
	synt	endif
	unmark
lab L8
	mark	L12
	var	12
	var	3
	str	2
	var	2
	str	3
	line	162
	colm	9
	synt	any
	invoke	4
	unmark
lab L12
	mark	L13
	var	12
	var	3
	str	4
	pnull
	var	13
	line	163
	colm	29
	synt	any
	nonnull
	line	163
	colm	9
	synt	any
	invoke	3
	unmark
lab L13
	mark	L14
	var	12
	var	3
	str	5
	pnull
	var	14
	line	164
	colm	23
	synt	any
	nonnull
	line	164
	colm	9
	synt	any
	invoke	3
	unmark
lab L14
	mark	L15
	var	12
	var	3
	line	165
	colm	9
	synt	any
	invoke	1
	unmark
lab L15
	mark	L16
	var	15
	var	3
	line	166
	colm	9
	synt	any
	invoke	1
	unmark
lab L16
	mark	L17
	var	16
	var	3
	int	6
	line	167
	colm	8
	synt	any
	invoke	2
	unmark
lab L17
	mark	L18
	line	169
	colm	4
	synt	if
	mark0
	mark	L19
	var	17
	var	3
	pnull
	int	7
	int	8
	line	169
	colm	23
	synt	any
	mult
	line	169
	colm	16
	synt	any
	invoke	2
	unmark
	efail
lab L19
	pnull
	unmark
	mark	L20
	var	18
	var	3
	line	170
	colm	12
	synt	any
	invoke	1
	unmark
lab L20
	mark	L21
	str	9
	line	171
	colm	7
	synt	any
	pret
lab L21
	synt	any
	pfail
	line	169
	colm	4
	synt	endif
	unmark
lab L18
	mark	L22
	line	174
	colm	4
	synt	if
	mark0
	mark	L23
	pnull
	var	4
	var	19
	var	3
	line	174
	colm	24
	synt	any
	invoke	1
	line	174
	colm	17
	synt	any
	asgn
	unmark
	efail
lab L23
	pnull
	unmark
	mark	L24
	var	18
	var	3
	line	175
	colm	12
	synt	any
	invoke	1
	unmark
lab L24
	mark	L25
	str	10
	line	176
	colm	7
	synt	any
	pret
lab L25
	synt	any
	pfail
	line	174
	colm	4
	synt	endif
	unmark
lab L22
	mark	L26
	var	18
	var	3
	line	179
	colm	9
	synt	any
	invoke	1
	unmark
lab L26
	mark	L27
	var	4
	line	180
	colm	9
	synt	any
	bscan
	mark	L28
	var	20
	var	21
	cset	11
	line	181
	colm	15
	synt	any
	invoke	1
	line	181
	colm	10
	synt	any
	invoke	1
	unmark
lab L28
	mark	L29
	line	182
	colm	7
	synt	if
	mark0
	pnull
	str	12
	line	182
	colm	10
	synt	any
	tabmat
	unmark
	var	20
	var	21
	cset	13
	line	182
	colm	32
	synt	any
	invoke	1
	line	182
	colm	27
	synt	any
	invoke	1
	line	182
	colm	7
	synt	endif
	unmark
lab L29
	mark	L30
	var	20
	var	21
	cset	11
	line	183
	colm	15
	synt	any
	invoke	1
	line	183
	colm	10
	synt	any
	invoke	1
	unmark
lab L30
	mark	L31
	var	22
	var	20
	int	14
	line	184
	colm	22
	synt	any
	invoke	1
	cset	15
	line	184
	colm	18
	synt	any
	invoke	2
	line	184
	colm	7
	synt	any
	pret
lab L31
	synt	any
	pfail
	line	180
	colm	9
	synt	any
	escan
	unmark
lab L27
	pnull
	line	186
	colm	1
	synt	any
	pfail
	end
proc vhttp_waitclock
	local	0,001000,host
	local	1,000040,hclock
	local	2,000040,curclock
	local	3,000000,table
	local	4,000000,delay
	con	0,002000,4,1000
	declend
	line	192
	colm	11
	synt	any
lab L1
	init	L3
	mark	L2
	mark	L4
	pnull
	var	1
	var	3
	line	195
	colm	22
	synt	any
	invoke	0
	line	195
	colm	14
	synt	any
	asgn
	unmark
lab L4
	pnull
	var	2
	line	196
	colm	19
	synt	any
	keywd	clock
	line	196
	colm	16
	synt	any
	asgn
	unmark
lab L2
	einit	L1
lab L3
	mark	L5
	line	199
	colm	4
	synt	if
	mark0
	pnull
	pnull
	var	1
	var	0
	line	199
	colm	13
	synt	any
	subsc
	var	2
	line	199
	colm	20
	synt	any
	eqv
	unmark
	mark	L6
	pnull
	var	2
	line	200
	colm	19
	synt	any
	keywd	clock
	line	200
	colm	16
	synt	any
	asgn
	unmark
lab L6
	line	201
	colm	7
	synt	if
	mark0
	pnull
	pnull
	var	1
	var	0
	line	201
	colm	16
	synt	any
	subsc
	var	2
	line	201
	colm	23
	synt	any
	eqv
	unmark
	mark	L7
	var	4
	int	0
	line	202
	colm	15
	synt	any
	invoke	1
	unmark
lab L7
	pnull
	var	2
	line	203
	colm	22
	synt	any
	keywd	clock
	line	203
	colm	19
	synt	any
	asgn
	line	201
	colm	7
	synt	endif
	line	199
	colm	4
	synt	endif
	unmark
lab L5
	mark	L8
	pnull
	pnull
	var	1
	var	0
	line	207
	colm	10
	synt	any
	subsc
	var	2
	line	207
	colm	17
	synt	any
	asgn
	unmark
lab L8
	mark	L9
	mark	L10
	pnull
	line	208
	colm	4
	synt	any
	pret
lab L10
	synt	any
	pfail
	unmark
lab L9
	pnull
	line	209
	colm	1
	synt	any
	pfail
	end
proc vhttp_inithist
	local	0,000020,fname
	local	1,000020,line
	local	2,000020,key
	local	3,000020,val
	local	4,000000,vhttp_htable
	local	5,000000,table
	local	6,000000,getenv
	local	7,000000,vhttp_hfile
	local	8,000000,open
	local	9,000000,read
	local	10,000000,tab
	local	11,000000,upto
	local	12,000000,move
	local	13,000000,seek
	local	14,000000,close
	local	15,000000,stop
	local	16,000000,write
	con	0,010000,4,110,117,115,105
	con	1,010000,8,077,156,157,110,117,115,105,077
	con	2,010000,1,057
	con	3,010000,8,056,165,162,154,150,151,163,164
	con	4,010000,1,142
	con	5,020000,1,040
	con	6,002000,1,1
	con	7,002000,1,0
	con	8,010000,1,167
	con	9,010000,11,143,141,156,047,164,040,157,160,145,156,040
	declend
	line	217
	colm	11
	synt	any
	mark	L1
	pnull
	var	4
	var	5
	line	220
	colm	25
	synt	any
	invoke	0
	line	220
	colm	17
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	var	0
	pnull
	pnull
	mark	L3
	var	6
	str	0
	line	221
	colm	20
	synt	any
	invoke	1
	line	221
	colm	29
	synt	any
	esusp
	goto	L4
lab L3
	str	1
lab L4
	str	2
	line	221
	colm	43
	synt	any
	cat
	str	3
	line	221
	colm	50
	synt	any
	cat
	line	221
	colm	10
	synt	any
	asgn
	unmark
lab L2
	mark	L5
	line	222
	colm	4
	synt	ifelse
	mark	L6
	pnull
	var	7
	var	8
	var	0
	str	4
	line	222
	colm	27
	synt	any
	invoke	2
	line	222
	colm	20
	synt	any
	asgn
	pop
	pnull
	var	9
	var	7
	line	222
	colm	48
	synt	any
	invoke	1
	line	222
	colm	65
	synt	any
	keywd	date
	line	222
	colm	62
	synt	any
	lexeq
	unmark
	mark	L8
lab L9
	line	223
	colm	7
	synt	while
	mark0
	pnull
	var	1
	var	9
	var	7
	line	223
	colm	25
	synt	any
	invoke	1
	line	223
	colm	18
	synt	any
	asgn
	unmark
	mark	L9
	var	1
	line	223
	colm	47
	synt	any
	bscan
	mark	L12
	pnull
	var	2
	mark	L13
	var	10
	var	11
	cset	5
	line	224
	colm	25
	synt	any
	invoke	1
	line	224
	colm	20
	synt	any
	invoke	1
	line	224
	colm	32
	synt	any
	esusp
	goto	L14
lab L13
	unmark
	goto	L10
lab L14
	line	224
	colm	14
	synt	any
	asgn
	unmark
lab L12
	mark	L15
	var	12
	int	6
	line	225
	colm	14
	synt	any
	invoke	1
	unmark
lab L15
	mark	L16
	pnull
	var	3
	var	10
	int	7
	line	226
	colm	20
	synt	any
	invoke	1
	line	226
	colm	14
	synt	any
	asgn
	unmark
lab L16
	pnull
	pnull
	var	4
	var	2
	line	227
	colm	22
	synt	any
	subsc
	var	3
	line	227
	colm	28
	synt	any
	asgn
	line	223
	colm	47
	synt	any
	escan
lab L10
	unmark
	goto	L9
lab L11
	line	223
	colm	7
	synt	endwhile
	unmark
lab L8
	var	13
	var	7
	int	7
	line	229
	colm	11
	synt	any
	invoke	2
	goto	L7
lab L6
	mark	L17
	var	14
	pnull
	var	7
	line	232
	colm	13
	synt	any
	nonnull
	line	232
	colm	12
	synt	any
	invoke	1
	unmark
lab L17
	mark	L18
	pnull
	var	7
	mark	L19
	var	8
	var	0
	str	8
	line	233
	colm	26
	synt	any
	invoke	2
	line	233
	colm	39
	synt	any
	esusp
	goto	L20
lab L19
	var	15
	pnull
	str	9
	var	0
	line	233
	colm	60
	synt	any
	cat
	line	233
	colm	45
	synt	any
	invoke	1
lab L20
	line	233
	colm	19
	synt	any
	asgn
	unmark
lab L18
	var	16
	var	7
	line	234
	colm	26
	synt	any
	keywd	date
	line	234
	colm	12
	synt	any
	invoke	2
lab L7
	line	222
	colm	4
	synt	endifelse
	unmark
lab L5
	mark	L21
	mark	L22
	pnull
	line	236
	colm	4
	synt	any
	pret
lab L22
	synt	any
	pfail
	unmark
lab L21
	pnull
	line	237
	colm	1
	synt	any
	pfail
	end
proc vhttp_histval
	local	0,001000,key
	local	1,000000,vhttp_htable
	declend
	line	239
	colm	11
	synt	any
	mark	L1
	mark	L2
	pnull
	pnull
	var	1
	var	0
	line	240
	colm	24
	synt	any
	subsc
	line	240
	colm	11
	synt	any
	nonnull
	line	240
	colm	4
	synt	any
	pret
lab L2
	synt	any
	pfail
	unmark
lab L1
	pnull
	line	241
	colm	1
	synt	any
	pfail
	end
proc vhttp_addhist
	local	0,001000,key
	local	1,001000,val
	local	2,000000,vhttp_htable
	local	3,000000,write
	local	4,000000,vhttp_hfile
	con	0,010000,1,040
	declend
	line	243
	colm	11
	synt	any
	mark	L1
	pnull
	pnull
	var	2
	var	0
	line	244
	colm	16
	synt	any
	subsc
	var	1
	line	244
	colm	22
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	var	3
	var	4
	var	0
	str	0
	var	1
	line	245
	colm	9
	synt	any
	invoke	4
	unmark
lab L2
	mark	L3
	mark	L4
	var	1
	line	246
	colm	4
	synt	any
	pret
lab L4
	synt	any
	pfail
	unmark
lab L3
	pnull
	line	247
	colm	1
	synt	any
	pfail
	end
