Click here to Skip to main content
15,888,013 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm having a asp.net code, that the web server will get the request from a external device(biometric) and response back to the device by "Response.Output.Write("OK");".

Now I'm trying to do the same from console application. I'm getting the web request from device using HttpServer. Now I just want to web response back to the device like asp.

Thanks in advance
Posted

Your question is not very clear, but perhaps you need to investigate the use of HttpWebRequest[^] and HttpWebResponse[^] classes.
 
Share this answer
 
The biometric device continously sending some request like http://localhost:8080/biocdta?SN=123....
then have to get the query parameters and based on some condition i have to response back to the device as "OK". Then the device and db will connect. Now the problem is how to respond back to the device from console application.

In php by simply echo "OK"; device will accept that. As because it's sending back web response.

Same i need in console.
 
Share this answer
 

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