Jump to content

Hi Need some help with understanding!


kimjessen

Recommended Posts

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

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(); 

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.