| |

VerySource

 Forgot password?
 Register
Search
View: 1078|Reply: 6

How to use the application to respond to http requests

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-14 13:00:01
| Show all posts |Read mode
The mobile provision interface provides for server and client interaction using the http post. What I want to ask is how to implement this function with an application, that is, without using tomcat or jboos, and using only an application (java) How to do it
Reply

Use magic Report

1

Threads

21

Posts

19.00

Credits

Newbie

Rank: 1

Credits
19.00

 China

Post time: 2020-4-13 00:30:01
| Show all posts
Familiar with the request and response headers

Listen port, parse request header, process request

Then write the corresponding header and return the response header
Reply

Use magic Report

1

Threads

51

Posts

32.00

Credits

Newbie

Rank: 1

Credits
32.00

 China

Post time: 2020-4-15 22:30:01
| Show all posts
For local applications, try the URL, but if you want to install APACHE server on the server side, you must have HTTP service
Reply

Use magic Report

0

Threads

21

Posts

19.00

Credits

Newbie

Rank: 1

Credits
19.00

 China

Post time: 2020-5-1 20:45:01
| Show all posts
In a word, implement an http / app server
Reply

Use magic Report

0

Threads

63

Posts

42.00

Credits

Newbie

Rank: 1

Credits
42.00

 China

Post time: 2020-5-5 17:00:01
| Show all posts
Then you must be familiar with the following thing: HTTP protocol

http://www.w3.org/Protocols/rfc2616/rfc2616.html (HTTP 1.1 protocol)

It seems very complicated, if it is just a simple application, it is very simple
Reply

Use magic Report

0

Threads

18

Posts

15.00

Credits

Newbie

Rank: 1

Credits
15.00

 China

Post time: 2020-5-5 23:45:01
| Show all posts
You look it up online, I remember what a net package, it seems to be an open source. Seems to support ftp\http\https these protocols, including server and client


good luck
Reply

Use magic Report

0

Threads

18

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-5-6 00:45:01
| Show all posts
HTTP protocol + up
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list