Subversion Repositories Kolibri OS

Rev

Rev 4233 | Rev 4541 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4233 Rev 4241
Line 42... Line 42...
42
virtual at 0
42
virtual at 0
43
        http_msg http_msg
43
        http_msg http_msg
44
end virtual
44
end virtual
Line 45... Line 45...
45
 
45
 
-
 
46
macro copy_till_zero {
46
macro copy_till_zero {
47
local   .copyloop, .copydone
47
  @@:
48
  .copyloop:
48
        lodsb
49
        lodsb
49
        test    al, al
50
        test    al, al
50
        jz      @f
51
        jz      .copydone
51
        stosb
52
        stosb
52
        jmp     @r
53
        jmp     .copyloop
53
  @@:
54
  .copydone:
Line 54... Line 55...
54
}
55
}
Line 55... Line 56...
55
 
56
 
Line 186... Line 187...
186
        rep     movsb
187
        rep     movsb
Line 187... Line 188...
187
 
188
 
188
        mov     esi, [hostname]
189
        mov     esi, [hostname]
Line -... Line 190...
-
 
190
        copy_till_zero
-
 
191
 
-
 
192
        cmp     byte[proxyUser], 0
-
 
193
        je      @f
-
 
194
        call    append_proxy_auth_header
-
 
195
  @@:
-
 
196
 
-
 
197
        mov     ax, 0x0a0d
189
        copy_till_zero
198
        stosw
190
 
199
 
191
        mov     esi, [add_header]
200
        mov     esi, [add_header]
192
        test    esi, esi
201
        test    esi, esi
193
        jz      @f
202
        jz      @f
Line 194... Line -...
194
        copy_till_zero
-
 
195
  @@:
-
 
196
 
-
 
197
        cmp     byte[proxyUser], 0
-
 
198
        je      @f
-
 
199
        call    append_proxy_auth_header
203
        copy_till_zero
200
  @@:
204
  @@:
201
 
205
 
Line 202... Line 206...
202
        mov     esi, str_close
206
        mov     esi, str_close
Line 297... Line 301...
297
        rep     movsb
301
        rep     movsb
Line 298... Line 302...
298
 
302
 
299
        mov     esi, [hostname]
303
        mov     esi, [hostname]
Line -... Line 304...
-
 
304
        copy_till_zero
-
 
305
 
-
 
306
        cmp     byte[proxyUser], 0
-
 
307
        je      @f
-
 
308
        call    append_proxy_auth_header
-
 
309
  @@:
-
 
310
 
-
 
311
        mov     ax, 0x0a0d
300
        copy_till_zero
312
        stosw
301
 
313
 
302
        mov     esi, [add_header]
314
        mov     esi, [add_header]
303
        test    esi, esi
315
        test    esi, esi
304
        jz      @f
316
        jz      @f
Line 305... Line -...
305
        copy_till_zero
-
 
306
  @@:
-
 
307
 
-
 
308
        cmp     byte[proxyUser], 0
-
 
309
        je      @f
-
 
310
        call    append_proxy_auth_header
317
        copy_till_zero
311
  @@:
318
  @@:
312
 
319
 
Line 313... Line 320...
313
        mov     esi, str_close
320
        mov     esi, str_close
Line 424... Line 431...
424
        rep     movsb
431
        rep     movsb
Line 425... Line 432...
425
 
432
 
426
        mov     esi, [content_type]
433
        mov     esi, [content_type]
Line -... Line 434...
-
 
434
        copy_till_zero
-
 
435
 
-
 
436
        cmp     byte[proxyUser], 0
-
 
437
        je      @f
-
 
438
        call    append_proxy_auth_header
-
 
439
  @@:
-
 
440
 
-
 
441
        mov     ax, 0x0a0d
427
        copy_till_zero
442
        stosw
428
 
443
 
429
        mov     esi, [add_header]
444
        mov     esi, [add_header]
430
        test    esi, esi
445
        test    esi, esi
431
        jz      @f
446
        jz      @f
Line 432... Line -...
432
        copy_till_zero
-
 
433
  @@:
-
 
434
 
-
 
435
        cmp     byte[proxyUser], 0
-
 
436
        je      @f
-
 
437
        call    append_proxy_auth_header
447
        copy_till_zero
438
  @@:
448
  @@:
439
 
449
 
Line 440... Line 450...
440
        mov     esi, str_close
450
        mov     esi, str_close
Line 1588... Line 1598...
1588
  .length       = $ - str_http11
1598
  .length       = $ - str_http11
1589
str_post_cl     db 13, 10, 'Content-Length: '
1599
str_post_cl     db 13, 10, 'Content-Length: '
1590
  .length       = $ - str_post_cl
1600
  .length       = $ - str_post_cl
1591
str_post_ct     db 13, 10, 'Content-Type: '
1601
str_post_ct     db 13, 10, 'Content-Type: '
1592
  .length       = $ - str_post_ct
1602
  .length       = $ - str_post_ct
1593
str_close       db 13, 10, 'User-Agent: KolibriOS libHTTP/1.0', 13, 10, 'Connection: Close', 13, 10, 13, 10
-
 
1594
  .length       = $ - str_close
-
 
1595
str_proxy_auth  db 13, 10, 'Proxy-Authorization: Basic '
1603
str_proxy_auth  db 13, 10, 'Proxy-Authorization: Basic '
1596
  .length       = $ - str_proxy_auth
1604
  .length       = $ - str_proxy_auth
-
 
1605
str_close       db 'User-Agent: KolibriOS libHTTP/1.0', 13, 10, 'Connection: Close', 13, 10, 13, 10
-
 
1606
  .length       = $ - str_close
Line 1597... Line 1607...
1597
 
1607
 
Line 1598... Line 1608...
1598
str_http        db 'http://', 0
1608
str_http        db 'http://', 0
1599
 
1609