Jump to content

Hi Need some help with understanding!


kimjessen
Go to solution Solved by boompa,

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

Link to comment
Share on other sites

  • Solution

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.