Home > Back-end >  How to convert the Java code below to Delphi
How to convert the Java code below to Delphi

Time:10-06

Package com. Easecom. Tomcatscan;
Import the Java. IO. *;
The import of java.net. *;
Public class postdemo {
Public postdemo () {
}
Public static void main (String [] args) {
Try {
URL the URL=new URL (" http://222.173.82.200:8080/smsServer/submit ");
URLConnection connection url=the openConnection ();
Connection. SetDoOutput (true);
OutputStreamWriter out=new OutputStreamWriter (connection.
GetOutputStream (), "utf-8");
Out. Write (CORPID=test&" CPPW=ERTYUFGHJK& PHONE=053289667807131616733 & amp; SENDTIME=2006-09-25 17:25:00 & amp; The CONTENT=mass test & amp; SRCTERMID=01234567 ");
Out. The flush ();
out.close();
A DataInputStream in=new a DataInputStream (connection. GetInputStream ());
String the inline=in readLine ();
System. The out. Println (inline);
in.close();
}
The catch (IOException ex2) {
System. The out. Println (" exe IOException: "+ ex2. ToString ());
}
}
}

CodePudding user response:

To realize what function will you speak out, let others give you use Delphi implementation, and don't waste time doing what translation

CodePudding user response:

Is using the network interface to achieve the function of the text?

CodePudding user response:

Is a post used directly in the indy idhttp. The post is

CodePudding user response:

Attention ~
  • Related