Community
cancel
Showing results for 
Search instead for 
Did you mean: 
idata
Community Manager
1,112 Views

Remote server data Transfer-Edison

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

0 Kudos
3 Replies
idata
Community Manager
40 Views

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.
idata
Community Manager
40 Views

Dear Andres,

The issue is resolved, bad was on configuration file.

# Virtual Hosts

#

ServerName localhost

DocumentRoot c:/wamp64/www

Options +Indexes +Includes +FollowSymLinks +MultiViews

AllowOverride All

Require all granted

idata
Community Manager
40 Views

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
Reply