具有Web服务器功能的.Net应用程序 [英] .Net application with web server functionality

查看:107
本文介绍了具有Web服务器功能的.Net应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我叫Vikash Gohil.

谁能帮我.

我的问题:

我有一个使用HTTP协议发送和接收数据的硬件设备
例如.它将请求发送到Web服务器,如下所示,
GET/abc/cdata?SN = 123456&options = all

现在,对于此请求,我的应用程序应以类似方式将其响应发送到设备.

已经有一个用python编写的应用程序可以使用该硬件,并且它也可以正常运行.但是我没有源代码,我想创建自己的应用程序.

从设备发送的数据类型来看,我认为我需要创建一个Web服务器,然后需要通过请求对象捕获设备请求,并通过响应对象发送响应.

谁能告诉我如何实现这一目标,我真的对http协议了解不多.

Hello,
This is Vikash Gohil.

Could anyone help me please.

My Issue :

I have a hardware device which sends and recieves data using HTTP Protocol
eg. it send request to web server as follows,
GET /abc/cdata?SN=123456&options=all

Now to this request my application should send its response to the device in similar manner.

there is already an application written in python for using the hardware and it is also wokring properly. but I do not have it source code and I want to create my own application.

From the kind of data sent by device, i think i need to create a web server, then i need to capture the device request, through request object and send response through response object.

Can anyone tell me how this can be achieved, I really dont have much knowledge about http protocol.

推荐答案

如果您的python文件具有.py扩展名,那么您应该尝试在文本编辑器中打开它们,您可能会找到所需的源.
If your python files have the .py extension, then you should try opening them in a text editor and you will likely have the source you are looking for.


这篇关于具有Web服务器功能的.Net应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆