Click here to Skip to main content
15,917,328 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Sergey Alexandrovich Kryukov 24-Jun-11 23:54pm    
Not clear. Do you have py files? Server or client side? Does device serves as a HTTP server? I assume yes but "sends and recieves data using HTTP Protocol" may mean any of the parts. Do you want to write in Python or IronPython or, say, C#.
VikashGohil 25-Jun-11 1:20am    
yes I have .py files but opening in notepad shows encrypted data. Also i dont know whether that code is server side or client side. I want to write my application in C#, Also i think the device itself has a built-in web server.

1 solution

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.
Share this answer
Sergey Alexandrovich Kryukov 24-Jun-11 23:54pm    
I'm not sure this is the problem -- it is not clear; please see my questions in comments.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900