csquared / arduino-restclient

Arduino RESTful HTTP Request Library
MIT License
205 stars 133 forks source link

How to mention the complete URL of the php file to call GET/POST request? #16

Open romuye123 opened 8 years ago

romuye123 commented 8 years ago

Following is my code, It fails always.

RestClient client = RestClient("http://abc.com"); int statusCode = client.get("/xyz/register.php", &response); Serial.print("Status code from server: "); Serial.println(statusCode); Serial.print("Response body from server: "); Serial.println(response);

Status code from server: 0 Response body from server: