Thread Über die Arroganz der Ecmascript Entwickler (6 answers)
Opened by rosti at 2019-10-19 09:10

Daxim
 2019-10-21 14:18
#190768 #190768
User since
2007-08-01
114 Artikel
BenutzerIn
[Homepage]
user image
Die bedeutsamsten sind: FCGI, HTTP/1.1 via Proxy, uwsgi, AJP, SCGI, ZMQ/Mongrel2

Beispiele:

FCGI

more (3.2kb):
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
00000000  01 01 2c 16 00 08 00 00  00 01 01 00 00 00 00 00   ..,..... ........
00000010 01 04 2c 16 01 54 00 00 0b 01 53 43 52 49 50 54 ..,..T.. ..SCRIPT
00000020 5f 4e 41 4d 45 61 0c 00 51 55 45 52 59 5f 53 54 _NAMEa.. QUERY_ST
00000030 52 49 4e 47 11 0b 47 41 54 45 57 41 59 5f 49 4e RING..GA TEWAY_IN
00000040 54 45 52 46 41 43 45 46 61 73 74 43 47 49 2f 31 TERFACEF astCGI/1
00000050 2e 30 0e 03 52 45 51 55 45 53 54 5f 4d 45 54 48 .0..REQU EST_METH
00000060 4f 44 47 45 54 0b 00 52 45 51 55 45 53 54 5f 55 ODGET..R EQUEST_U
00000070 52 49 0f 01 53 43 52 49 50 54 5f 46 49 4c 45 4e RI..SCRI PT_FILEN
00000080 41 4d 45 61 0f 1a 53 45 52 56 45 52 5f 53 4f 46 AMEa..SE RVER_SOF
00000090 54 57 41 52 45 68 6f 6c 6c 6f 64 6f 74 6d 65 2f TWAREhol lodotme/
000000A0 66 61 73 74 2d 63 67 69 2d 63 6c 69 65 6e 74 0b fast-cgi -client.
000000B0 0b 52 45 4d 4f 54 45 5f 41 44 44 52 31 39 32 2e .REMOTE_ ADDR192.
000000C0 31 36 38 2e 30 2e 31 0b 04 52 45 4d 4f 54 45 5f 168.0.1. .REMOTE_
000000D0 50 4f 52 54 39 39 38 35 0b 09 53 45 52 56 45 52 PORT9985 ..SERVER
000000E0 5f 41 44 44 52 31 32 37 2e 30 2e 30 2e 31 0b 02 _ADDR127 .0.0.1..
000000F0 53 45 52 56 45 52 5f 50 4f 52 54 38 30 0b 09 53 SERVER_P ORT80..S
00000100 45 52 56 45 52 5f 4e 41 4d 45 6c 6f 63 61 6c 68 ERVER_NA MElocalh
00000110 6f 73 74 0f 08 53 45 52 56 45 52 5f 50 52 4f 54 ost..SER VER_PROT
00000120 4f 43 4f 4c 48 54 54 50 2f 31 2e 31 0c 21 43 4f OCOLHTTP /1.1.!CO
00000130 4e 54 45 4e 54 5f 54 59 50 45 61 70 70 6c 69 63 NTENT_TY PEapplic
00000140 61 74 69 6f 6e 2f 78 2d 77 77 77 2d 66 6f 72 6d ation/x- www-form
00000150 2d 75 72 6c 65 6e 63 6f 64 65 64 0e 01 43 4f 4e -urlenco ded..CON
00000160 54 45 4e 54 5f 4c 45 4e 47 54 48 30 01 04 2c 16 TENT_LEN GTH0..,.
00000170 00 00 00 00 01 05 2c 16 00 00 00 00 ......,. ....

00000000 01 07 2c 16 00 4c 04 00 31 39 32 2e 31 36 38 2e ..,..L.. 192.168.
00000010 30 2e 31 20 2d 20 2d 20 5b 32 31 2f 4f 63 74 2f 0.1 - - [21/Oct/
00000020 32 30 31 39 3a 31 33 3a 30 32 3a 31 37 20 2b 30 2019:13: 02:17 +0
00000030 32 30 30 5d 20 22 47 45 54 20 20 48 54 54 50 2f 200] "GE T HTTP/
00000040 31 2e 31 22 20 32 30 30 20 31 31 20 22 2d 22 20 1.1" 200 11 "-"
00000050 22 2d 22 0a 00 00 00 00 01 07 2c 16 00 00 00 00 "-"..... ..,.....
00000060 01 06 2c 16 00 1d 03 00 53 74 61 74 75 73 3a 20 ..,..... Status:
00000070 32 30 30 20 4f 4b 0d 0a 0d 0a 68 65 6c 6c 6f 20 200 OK.. ..hello
00000080 77 6f 72 6c 64 00 00 00 01 06 2c 16 00 00 00 00 world... ..,.....
00000090 01 03 2c 16 00 08 00 00 00 00 00 00 00 00 00 00 ..,..... ........


HTTP/1.1 via Proxy

more (2.3kb):
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
00000000  47 45 54 20 2f 20 48 54  54 50 2f 31 2e 31 0d 0a   GET / HT TP/1.1..
00000010 41 63 63 65 70 74 3a 20 2a 2f 2a 0d 0a 58 2d 66 Accept: */*..X-f
00000020 6f 72 77 61 72 64 65 64 2d 66 6f 72 3a 20 31 32 orwarded -for: 12
00000030 37 2e 30 2e 30 2e 31 0d 0a 43 6f 6e 6e 65 63 74 7.0.0.1. .Connect
00000040 69 6f 6e 3a 20 63 6c 6f 73 65 2c 20 54 65 0d 0a ion: clo se, Te..
00000050 52 65 66 65 72 65 72 3a 20 68 74 74 70 3a 2f 2f Referer: http://
00000060 6c 6f 63 61 6c 68 6f 73 74 3a 35 35 35 35 35 2f localhos t:55555/
00000070 0d 0a 54 65 3a 20 74 72 61 69 6c 65 72 73 0d 0a ..Te: tr ailers..
00000080 48 6f 73 74 3a 20 6c 6f 63 61 6c 68 6f 73 74 3a Host: lo calhost:
00000090 35 35 35 35 35 0d 0a 55 73 65 72 2d 61 67 65 6e 55555..U ser-agen
000000A0 74 3a 20 48 54 54 50 69 65 2f 31 2e 30 2e 33 0d t: HTTPi e/1.0.3.
000000B0 0a 41 63 63 65 70 74 2d 65 6e 63 6f 64 69 6e 67 .Accept- encoding
000000C0 3a 20 67 7a 69 70 2c 20 64 65 66 6c 61 74 65 0d : gzip, deflate.
000000D0 0a 0d 0a ...

00000000 48 54 54 50 2f 31 2e 31 20 32 30 30 20 4f 4b 0d HTTP/1.1 200 OK.
00000010 0a 44 61 74 65 3a 20 4d 6f 6e 2c 20 32 31 20 4f .Date: M on, 21 O
00000020 63 74 20 32 30 31 39 20 31 31 3a 34 34 3a 34 38 ct 2019 11:44:48
00000030 20 47 4d 54 0d 0a 53 65 72 76 65 72 3a 20 53 74 GMT..Se rver: St
00000040 61 72 6c 69 67 68 74 2f 30 2e 30 33 30 36 20 28 arlight/ 0.0306 (
00000050 6c 69 6e 75 78 29 0d 0a 54 72 61 6e 73 66 65 72 linux).. Transfer
00000060 2d 45 6e 63 6f 64 69 6e 67 3a 20 63 68 75 6e 6b -Encodin g: chunk
00000070 65 64 0d 0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 ed..Conn ection:
00000080 63 6c 6f 73 65 0d 0a 0d 0a close... .
00000089 68 65 6c 6c 6f 20 77 6f 72 6c 64 hello wo rld


uwsgi

more (1.8kb):
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
00000000  05 17 01 00 0e 00 43 4f  4e 54 45 4e 54 5f 4c 45   ......CO NTENT_LE
00000010 4e 47 54 48 00 00 0c 00 43 4f 4e 54 45 4e 54 5f NGTH.... CONTENT_
00000020 54 59 50 45 00 00 09 00 48 54 54 50 5f 48 4f 53 TYPE.... HTTP_HOS
00000030 54 0f 00 6c 6f 63 61 6c 68 6f 73 74 3a 35 35 35 T..local host:555
00000040 35 35 0f 00 48 54 54 50 5f 55 53 45 52 5f 41 47 55..HTTP _USER_AG
00000050 45 4e 54 10 00 6c 69 62 77 77 77 2d 70 65 72 6c ENT..lib www-perl
00000060 2f 36 2e 33 39 09 00 50 41 54 48 5f 49 4e 46 4f /6.39..P ATH_INFO
00000070 01 00 2f 0c 00 51 55 45 52 59 5f 53 54 52 49 4e ../..QUE RY_STRIN
00000080 47 00 00 0b 00 52 45 4d 4f 54 45 5f 41 44 44 52 G....REM OTE_ADDR
00000090 09 00 31 32 37 2e 30 2e 30 2e 31 0b 00 52 45 4d ..127.0. 0.1..REM
000000A0 4f 54 45 5f 50 4f 52 54 05 00 35 35 39 33 32 0e OTE_PORT ..55932.
000000B0 00 52 45 51 55 45 53 54 5f 4d 45 54 48 4f 44 03 .REQUEST _METHOD.
000000C0 00 47 45 54 0b 00 52 45 51 55 45 53 54 5f 55 52 .GET..RE QUEST_UR
000000D0 49 01 00 2f 0b 00 53 45 52 56 45 52 5f 4e 41 4d I../..SE RVER_NAM
000000E0 45 09 00 6c 6f 63 61 6c 68 6f 73 74 0b 00 53 45 E..local host..SE
000000F0 52 56 45 52 5f 50 4f 52 54 05 00 35 35 35 35 35 RVER_POR T..55555
00000100 0f 00 53 45 52 56 45 52 5f 50 52 4f 54 4f 43 4f ..SERVER _PROTOCO
00000110 4c 08 00 48 54 54 50 2f 31 2e 31 L..HTTP/ 1.1


SCGI

more (804b):
Code: (dl )
1
2
3
4
5
6
7
00000000  35 37 3a 43 4f 4e 54 45  4e 54 5f 4c 45 4e 47 54   57:CONTE NT_LENGT
00000010 48 00 30 00 53 43 47 49 00 31 00 52 45 51 55 45 H.0.SCGI .1.REQUE
00000020 53 54 5f 4d 45 54 48 4f 44 00 47 45 54 00 52 45 ST_METHO D.GET.RE
00000030 51 55 45 53 54 5f 55 52 49 00 2f 00 2c QUEST_UR I./.,

00000000 53 74 61 74 75 73 3a 20 32 30 30 0d 0a 0d 0a Status: 200....
0000000F 68 65 6c 6c 6f 20 77 6f 72 6c 64 hello wo rld


Quote
das bedeutet eben daß dies mit der Entwicklung neuer Webserver und einer Weiterentwicklung des HTTProtokols einhergehen muss.

Das ist falsch. Alle besagten Protokolle/Schnittstellen sind in der Ära von HTTP/1.1 entstanden und haben nicht erfordert, dass HTTP an sie angepasst werden musste.

View full thread Über die Arroganz der Ecmascript Entwickler