salut tout le monde,
je vous expose la situation:
j'ai un script qui réalise des fonctions et qui utilise des sockets.
ce script je l'execute sur un système embarqué qui contient comme browser "FRESCO".le problème avec celui ci c'est que il utilise le protocole http 1.0 et du cout j'ai pas mal d'erreur la dessus.j'utilise un serveur apache pour me connecter la dessus et avoir les logs.

voici quelques unes:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
 @2BD3B070: opened new socket, 735282032, total is 1
[BROWSER] 000001174: |  |  (7) @2BD3B070: txheader Connection: Keep-Alive
[BROWSER] 000001174: |  |  @2BD3B070: build_request: built ---
000001174: |  |  GET script/script.py?jobport=48311 HTTP/1.0
Host: localhost
Pragma: no-cache
Accept: text/html, image/gif, image/jpeg, image/pjpeg, image/png, */*; q=.2
[BROWSER] 000001174: FAF: BROWSER_MSG_TYPE_NETWORK msg
[BROWSER] 000001174: http_prosecute status 102 (loop 0)
[BROWSER] 000001174: sock@00000060: successful synchronous connect (?)
[BROWSER] 000001174: http_prosecute: connect returned NULL
[BROWSER] 000001174: @2BD3B070: status now 200
[BROWSER] 000001174: @2BD3B070: callback requested
[BROWSER] 000001174: http: awaiting callbacks:
[BROWSER]  @2BD3B070
[BROWSER] 
[BROWSER] 000001174: http_prosecute status 200 (loop 1)
[BROWSER] 000001174: @2BD3B070: status now 204
[BROWSER] 000001174: socket 96 direction set to WRITING
[BROWSER] 000001174: @2BD3B070: callback requested
[BROWSER] 000001174: http: awaiting callbacks:
[BROWSER]  @2BD3B070
[BROWSER] 
[BROWSER] 000001174: http_prosecute status 204 (loop 1)
[BROWSER] 000001174: @2BD3B070: in http_send_request, flags=0x00000008
[BROWSER] 000001174: @2BD3B070: calling http_send(290)
[BROWSER] 000001174: @2BD3B070: sent rc=290
[BROWSER] 000001174: @2BD3B070: flags: 
[BROWSER]  priority
[BROWSER] 
[BROWSER] 000001174: @2BD3B070: status now waiting
[BROWSER] 000001174: socket 96 direction set to READING
[BROWSER] 000001174: @2BD3B070: callback requested
[BROWSER] 000001174: http: awaiting callbacks:
[BROWSER]  @2BD3B070
[BROWSER] 
[BROWSER] 000001174: http_prosecute status 300 (loop 1)
[BROWSER] 000001174: @2BD3B070: http_async_callback calls make_callback
[BROWSER] 000001174: @2BD3B070: making callback(@2BD36188,300,0+0/-1)
[BROWSER] 000001174: FAF: BROWSER_MSG_TYPE_NETWORK msg
[BROWSER] 000001185: http_prosecute status 300 (loop 0)
[BROWSER] 000001185: recv gave 1784
[BROWSER] 000001185: @2BD3B070: read 1784 bytes
[BROWSER] 000001185: @2BD3B070: received 'HTTP/1.1 200 OK' keptalive 0
[BROWSER] 000001185: @2BD3B070: response 200 'OK'
[BROWSER] 000001185: set_server_flag: c@2BD3B070 flags 10000
[BROWSER] 000001185: @2BD3B070: status now getting-headers
[BROWSER] 000001185: @2BD3B070: callback requested
[BROWSER] 000001185: http: awaiting callbacks:
[BROWSER]  @2BD3B070
[BROWSER] 
[BROWSER] 000001185: http_prosecute status 301 (loop 1)
[BROWSER] 000001185: recv gave 0
[BROWSER] 000001185: @2BD3B070: EOF in getline (1767 chars)
[BROWSER] 000001185: @2BD3B070: read 0 bytes
[BROWSER] 000001185: @2BD3B070: rxheader 'Date: Mon, 11 Jun 2012 08:22:50 GMT'
[BROWSER] 000001185: recv gave 0
[BROWSER] 000001185: @2BD3B070: EOF in getline (1730 chars)
[BROWSER] 000001185: @2BD3B070: read 0 bytes
[BROWSER] 000001186: @2BD3B070: rxheader 'Server: Apache/2.2.14 (Ubuntu)'
[BROWSER] 000001186: recv gave 0
[BROWSER] 000001186: @2BD3B070: EOF in getline (1698 chars)
[BROWSER] 000001186: @2BD3B070: read 0 bytes
[BROWSER] 000001186: @2BD3B070: rxheader 'Vary: Accept-Encoding'
[BROWSER] 000001186: recv gave 0
[BROWSER] 000001186: @2BD3B070: EOF in getline (1675 chars)
[BROWSER] 
000001286: @2BD3B070: read 0 bytes
[BROWSER] 000001286: @2BD3B070: rxheader 'Connection: close'
[BROWSER] 000001286: @2BD3B070: orphaning queue
[BROWSER] 000001286: @2BD3B070: from_queue: queue @2BD38330 empty
[BROWSER] 000001286: recv gave 0
[BROWSER] 000001286: @2BD3B070: EOF in getline (1656 chars)
[BROWSER] 000001286: @2BD3B070: read 0 bytes
[BROWSER] 000001286: @2BD3B070: rxheader 'Content-Type: text/html'
[BROWSER] 000001286: @2BD3B070: calling mime_to_file_type(text/html)
[BROWSER] 000001286: @2BD3B070: mime_to_file_type returns 0xfaf
[BROWSER] 000001286: recv gave 0
[BROWSER] 000001286: @2BD3B070: EOF in getline (1631 chars)
[BROWSER] 000001286: @2BD3B070: read 0 bytes
[BROWSER] 000001286: @2BD3B070: rxheader ''
[BROWSER] 000001286: @2BD3B070: entering getting_body state, sofar=-1 size=-1 total=0
[BROWSER] 000001286: @2BD3B070: finished getting headers buf used/off/size 2/1631/8192 bytes
[BROWSER] 000001286: @2BD3B070: orphaning queue
[BROWSER] 000001286: @2BD3B070: from_queue: queue @2BD38330 empty
[BROWSER] 000001286: http_prosecute status 302 (loop 1)
[BROWSER] 000001286: @2BD3B070: setting so_far=0
[BROWSER] 000001286: recv gave 0
[BROWSER] 000001286: @2BD3B070: recv (body 6561) gave 0
[BROWSER] 000001286: @2BD3B070: making callback(@2BD36188,302,0+1629/-1)
[BROWSER] 000001286: |  |  http_status:
[BROWSER] 000001286: |  |  resource_get(Microsoft/CP1252)
[BROWSER] 000001286: |  |  resource_get: could not find 'Microsoft/CP1252'
[BROWSER] 000001286: @2BD3B070: adding 1629 to so_far (now 1629)
[BROWSER] 000001286: @2BD3B070: http_async_callback calls make_callback
[BROWSER] 000001286: @2BD3B070: making callback(@2BD36188,302,0+0/-1)
[BROWSER] 000001286: |  Set title to 'BCLinux-v1 Autotests'
[BROWSER] 
000001301: |  
000001301: |  ERROR! "SyntaxError 1015: Reserved keyword "const" used as variable name"
[BROWSER] 000001304: |  |  SUCCESSFULLY VERIFIED INTERNAL CONSISTENCY
[BROWSER] 000001304: FAF: BROWSER_MSG_TYPE_NETWORK msg
[BROWSER] 000001304: http_prosecute status 302 (loop 0)
[BROWSER] 000001304: recv gave 0
[BROWSER] 000001304: @2BD3B070: recv (body 8192) gave 0
[BROWSER] 000001304: @2BD3B070: Connection closed on socket 735282032, errno=513
[BROWSER] 000001304: @2BD3B070: status now completed-file
[BROWSER] 000001304: @2BD3B070: callback requested
[BROWSER] 000001304: http: awaiting callbacks:
[BROWSER]  @2BD3B070
[BROWSER] 
[BROWSER] 000001304: @2BD3B070: closing socket 735282032 (0 left)
[BROWSER] 000001304: @2BD3B070: decrementing queue @2BD38330's nsockets to 0
[BROWSER] 000001304: @2BD3B070: orphaning queue
[BROWSER] 000001304: @2BD3B070: from_queue: queue @2BD38330 empty
[BROWSER] 000001304: @2BD3B070: freeing queue @2BD38330
[BROWSER] 000001304: @2BD3B070: http_async_callback calls make_callback
[BROWSER] 000001304: @2BD3B070: making callback(@2BD36188,500,0+0/-1)
[BROWSER] 000001304: |  @2BD3B070: being closed by SWI http_close (socket -1)
[BROWSER] 000001304: |  @2BD3B070: status now 400
[BROWSER] 000001304: |  @2BD3B070: callback requested
[BROWSER] 000001304: |  http: awaiting callbacks:
[BROWSER]  @2BD3B070
[BROWSER] 
[BROWSER] 000001304: |  @2BD3B070: unlinking from list
[BROWSER] 000001304: |  @2BD3B070: found in callback list, removing
[BROWSER] 000001304: |  http: no callbacks pending
[BROWSER] 000001304: |  @2BD3B070: freeing connection structure
[BROWSER] 000001304: |  Connection closed.
[BROWSER] 000001304: |  |  SUCCESSFULLY VERIFIED INTERNAL CONSISTENCY
[0:00:37.230][BROWSER][HTTP_END] http://localhost/script/script.py?jobport=48311 (0)
[BROWSER] 000001304: FAF: BROWSER_MSG_TYPE_NETWORK msg