3 Replies Latest reply on Feb 22, 2017 10:53 AM by Intel Corporation

    Remote server data Transfer-Edison

    Gray-Worm

      Hi Guys,

      Stuck on below point ---

      Brief on what i am doing ---

      1) Hitting a PHP file, which is hosted on a WAMP server on a remote machine.

      2) Edison & remote machine are on same network

      3) Can hit php on local machine, but getting problem from edison.

      ============================================================================

      if (client.connect(server, 8080)) {

          Serial.println("--> connection ok\n");

          client.print("GET/ test.php?"); // This

          client.println(" HTTP/1.1"); // Part of the GET request

          client.print( "Host: " );

          client.println(server);

          client.println("Connection: close"); // Part of the GET request telling the server that we are over transmitting the message

          client.println(); // Empty line

          client.println(); // Empty line

          client.stop();    // Closing connection to server

          Serial.println("--> finished transmission\n");

        }

      ==================================================================================

       

      Need a quicker, super quick response..

        • 1. Re: Remote server data Transfer-Edison
          Intel Corporation
          This message was posted on behalf of Intel Corporation

          Hello Gray-Worm,

          Thank you for interest in the Intel® Edison Breakout Board.

          I understand you want to hit a PHP file that is located on a remote machine. When you perform the request from a local machine, the request is successful, but the request fails when made through the Edison board.

          Could you please elaborate a bit more on the issue you are experiencing? Any error message appears while making the request? Is the PHP file partially transferred? Are you using the exact same code in your local machine? Is there a guide or site you are using as reference to write your code?

          I’ll be waiting for your response. 

          Regards,
          Andres V.

          • 2. Re: Remote server data Transfer-Edison
            Gray-Worm

            Dear Andres,

             

            The issue is resolved, bad was on configuration file.

             

            # Virtual Hosts

            #

             

             

            <VirtualHost *:80>

              ServerName localhost

              DocumentRoot c:/wamp64/www

              <Directory  "c:/wamp64/www/">

              Options +Indexes +Includes +FollowSymLinks +MultiViews

              AllowOverride All

              Require all granted

              </Directory>

            </VirtualHost>

            • 3. Re: Remote server data Transfer-Edison
              Intel Corporation
              This message was posted on behalf of Intel Corporation

              Hello Gray-Worm,

              I’m glad to hear that you could solve the issue.

              Thank you for sharing your experience, the community appreciates it.

              Regards,
              Andres