vendredi 8 mai 2015
Daten via Post an php Script senden
Posted on 04:57 by verona
Hallo,
ich versuche mit folgenden Script Daten an ein php-Script via POSt zu versenden, ohne Erfolg,. Als GET angehangen gehts...
JAVA
KONSOLE
Das sagt die PHP-Seite
No Post Params? Warum?
Gruss Rammi
ich versuche mit folgenden Script Daten an ein php-Script via POSt zu versenden, ohne Erfolg,. Als GET angehangen gehts...
JAVA
Java Code:
-
-
import java.io.*;
-
import java.net.*;
-
public class UrlLader2 {
-
-
-
-
-
try {
-
-
// Connection:
-
}
-
con.setDoOutput( true );
-
// Send data:
-
os = con.getOutputStream();
-
os.write( "hallo von java ".getBytes() );
-
os.flush();
-
// Read response:
-
is = con.getInputStream();
-
int len;
-
byte[] buff = new byte[4096];
-
while( -1 != (len = is.read( buff )) ) {
-
}
-
}
-
}
-
}
-
}
KONSOLE
HTML-Code:
Successfully dumped 0 post variables.View it at http://ift.tt/1F9EzE1 body was 0 chars long.
HTML-Code:
...
Headers (Some may be inserted by server)
REQUEST_URI = /post.php
QUERY_STRING =
REQUEST_METHOD = POST
GATEWAY_INTERFACE = CGI/1.1
REMOTE_PORT = 50334
REMOTE_ADDR = 84.131.70.236
CONTENT_LENGTH = 15
CONTENT_TYPE = application/x-www-form-urlencoded
HTTP_CONNECTION = close
HTTP_ACCEPT = text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
HTTP_HOST = posttestserver.com
HTTP_USER_AGENT = Java/1.8.0_45
UNIQUE_ID = VUyYptBx6hIAAATQ7tUAAAAD
REQUEST_TIME_FLOAT = 1431083174.0741
REQUEST_TIME = 1431083174
No Post Params.
Empty post body.
Upload contains PUT data: hallo von java
Gruss Rammi
Daten via Post an php Script senden
Categories: Daten via Post an php Script senden
Inscription à :
Publier les commentaires (Atom)
0 commentaires:
Enregistrer un commentaire