PDA

View Full Version : linux wget test su db


texerasmo
09-08-2005, 12:14
Ciao a tutti,

ho un web-application che fa una connesione al db

volevo utilizzare il comando wget per simulare una connessione

esempio
parametri corretti

wget http://192.168.0.1:8080/miawebb/login.jsp?login=test&password=test
non riesco a capire se si logga oppure no

parametri non corretti
perche se faccio cosė
wget http://192.168.0.1:8080/miawebb/login.jsp?login=test&password=test33
non noto nessuna differenza.

NiLUS
09-08-2005, 13:11
Ma login.jps, dati username e password corretti, fa il redirect a un file?

texerasmo
09-08-2005, 14:02
si
va ha home/index.jsp

NiLUS
09-08-2005, 14:06
E da browser funziona?

NiLUS
09-08-2005, 14:07
Ora che ci penso... se usi apache2 vai sotto /var/log/apache2 e guardati access.log e error.log ...

texerasmo
09-08-2005, 14:13
si broswer funziona

texerasmo
09-08-2005, 14:24
forse non ho i permessi per farlo
conosci qualche programma di
benchmark semplice semplice

texerasmo
09-08-2005, 14:31
error_log
Questo in caso l'accesso č errrato

Tue Aug 9 15:26:58 2005] [error] [client 192.168.0.116] [ecid: 1123594018:127.0.0.1:4483:0:582,0] MOD_OC4J_0015: recv() returns 0. There
has no message available to be received and oc4j has gracefully (orderly) closed the connection.

[Tue Aug 9 15:26:58 2005] [error] [client 192.168.0.116] [ecid: 1123594018:127.0.0.1:4483:0:582,0] MOD_OC4J_0054: Failed to call network
routine to receive an ajp13 message from oc4j.

[Tue Aug 9 15:26:58 2005] [error] [client i192.168.0.116] [ecid: 1123594018:127.0.0.1:4483:0:582,0] MOD_OC4J_0033: Failed to receive an
ajp13 message from oc4j.

[Tue Aug 9 15:26:58 2005] [warn] [client 192.168.0.116] [ecid: 1123594018:127.0.0.1:4483:0:582,0] MOD_OC4J_0078: Network connection errors
happened to host: oracle.cms and port: 3301 while receiving the first response from oc4j. This request is recoverable.


idem se ce li passo corretti

Tue Aug 9 15:28:48 2005] [error] [client 192.168.0.116] [ecid: 1123594128:127.0.0.1:3770:0:825,0] MOD_OC4J_0015: recv() returns 0. There
has no message available to be received and oc4j has gracefully (orderly) closed the connection.

[Tue Aug 9 15:28:48 2005] [error] [client 192.168.0.116] [ecid: 1123594128:127.0.0.1:3770:0:825,0] MOD_OC4J_0054: Failed to call network
routine to receive an ajp13 message from oc4j.

[Tue Aug 9 15:28:48 2005] [error] [client 192.168.0.116] [ecid: 1123594128:127.0.0.1:3770:0:825,0] MOD_OC4J_0033: Failed to receive an
ajp13 message from oc4j.

[Tue Aug 9 15:28:48 2005] [warn] [client 192.168.0.116] [ecid: 1123594128:127.0.0.1:3770:0:825,0] MOD_OC4J_0078: Network connection errors
happened to host: oracle.cms and port: 3301 while receiving the first response from oc4j. This request is recoverable.

texerasmo
09-08-2005, 14:32
access_log
192.168.0.116 - - [09/Aug/2005:15:28:48 +0200] "GET /miawebb/login.jsp?login=admin HTTP/1.0" 200 3676