kimjessen Posted August 27, 2014 Share Posted August 27, 2014 I have a system that I want to change. it works like today that I connect to the server and sends the data to a file. fine. roughly looks like this. connecting to server and I send this. : GET /invput?id=sr1234&data=1,2,3,4,5,6,7,8,9 HTTP/1.1 fine. what I do not understand is "/ invput?" I have learned a different way of doing it that I send to a .PHP file which then create a file in which data is stored in. but "invput" is a library right? Link to comment https://forums.phpfreaks.com/topic/290679-hi-need-some-help-with-understanding/ Share on other sites More sharing options...
kimjessen Posted August 27, 2014 Author Share Posted August 27, 2014 You may just get the code here. It is an MPU kit Arduino type I work with. client.connect(XXXXXX.YYY, 8005); delay(10); Ethernet.maintain(); Serial.println("connecting..."); if (client.connected()) { Serial.println("connected"); client.println("GET /invput?id=serinummer1234&data=1,2,3,4,5,6,7,8,9 HTTP/1.1"); client.println("Host: XXXXXX.YYY"); client.println("Connection: close"); client.println(); Link to comment https://forums.phpfreaks.com/topic/290679-hi-need-some-help-with-understanding/#findComment-1489047 Share on other sites More sharing options...
boompa Posted August 27, 2014 Share Posted August 27, 2014 invput is apparently the name of the script/program. It could be written in any language at all, or the web server could be rewriting the url to /invput.php or something else. In the end, it does not matter to you; it's a script/program available through the web server which accepts a set of name-value pairs as a GET request and responds to you. Link to comment https://forums.phpfreaks.com/topic/290679-hi-need-some-help-with-understanding/#findComment-1489048 Share on other sites More sharing options...
kimjessen Posted August 27, 2014 Author Share Posted August 27, 2014 ok thanks for reply Link to comment https://forums.phpfreaks.com/topic/290679-hi-need-some-help-with-understanding/#findComment-1489050 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.