I use Cobra have tried the examples of chapter in “TCP / Web Server Tutorial”.(Link: http://wiki.tinyclr.com/index.php?title=TCP_/_Web_Server_Tutorial )
I want to edit a http page, and the http page can access EMX. The data can be transfered between http page.
I have no experience baout http, can anybody give some tips or examples?
Should I download a “Visual Studio Express 2012 für Web”?
We have great HTTP related examples on Codeshare. Have you looked there?
@ workhard10 - For web-based development I still prefer to use Notepad++ (if you don’t mind manual leading indents) and most of all Eclipse Studio (maybe just hard habbits). Also, the total interactions between device and server will depend on your needs and specifications, however, i will try to explain a simple server/device interaction.
Using the sockets method would cause much less overhead for the device itself because instead of hosting and running the HTTP server code, having it parse the header (which also increases communication latency) and build a header for a response, you will be dealing with a considerably smaller amount of data to be transmitted and parsed.
Example of HTTP communications request to set variable ‘x’ to 13:
[quote]GET /configure/?x=13 HTTP/1.1
Server: Simple NETMF Server Example
Response to GET request:
[quote]HTTP/1.1 200 OK
Server: Apache/126.96.36.199 (Unix) (Red-Hat/Linux)
Content-Type: text/html; charset=UTF-8
POST request is the same as a GET request, except that the post data would follow the “End of Header” instead of being a part of the document query (?x=13).
Raw socket communication would simplify the data down to (depending on how you end up coding it):
This is just to demonstrate the communication logic between server and device, however as Architect said, check the Codeshare for code-wise examples
@ Architect -
thanks a lot!!