Home > Net >  C#.net how to develop a HTTP protocol interface
C#.net how to develop a HTTP protocol interface

Time:11-19

To develop an interface to use HTTP protocol request is a POSt I will write the webserver will not teach this

CodePudding user response:

To do in the way a web server, set the returned ContentType to XML/JSON/PlainText,

CodePudding user response:

With WS or ASP.NET write a ASHX file, using AJAX libraries to call,,,

CodePudding user response:

Tcp transport can use the Api or WebServer or Wcf can write the interface

CodePudding user response:

Since rules for this. So or webapi faster.

Create a new controller to set the route (" qrcode ") write a method called the login.

CodePudding user response:

In a few years ago I wrote an example: https://bbs.csdn.net/topics/390963758/

CodePudding user response:

, by the way, now is the age of various lightweight front-end "flying", business server "two-way communication" to achieve the function of the "active push message", so to websocket server basic communication architecture for you as well, using Fleck framework, you can under the Windows 7 system using the.net 4.6.2 easily with a few lines of code is set up a websocket two-way communication server,
  • Related