sensaura-public / iotweb

A simple HTTP and WebSocket server component for Windows 10 IoT Core and .NET 4.5
38 stars 21 forks source link

How to send request to iotweb HTTP/websocket server? #10

Open Thameem80 opened 7 years ago

Thameem80 commented 7 years ago

I am using iotweb HTTP/Websocket server in my project and i am able to start the server and its listening on port 8000. But i failed to send the request in HTTP/websocket. There is no documentation about how to send the request to iotweb server which is listening on my machine. Please provide the necessary params in HTTPClient to pass it to iotweb server(my machine). Please guide me on this.

sbrl commented 7 years ago

@Thameem80 IotWeb is a http server library. In order to send a request to your new server, you'll need a http client, which you'll have to find elsewhere - IotWeb does not implement a http client. You could, for example, use the inbuilt WebRequest class that comes with C# to make a request to your new server. You could also use your browser, or wget / curl from the command line.