The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [http]

Hypertext Transfer Protocol (HTTP) is an application level network protocol that is used for the transfer of content on the World Wide Web.

Filter by
Sorted by
Tagged with
3
votes
4answers
5k views

Scan IP address of ESP8266

I am working on a project in which, the mobile app/browser sends HTTP command to ESP8266 in AP mode. The default IP address of ESP is 192.168.4.1. Therefore in order to connect the ESP to WiFi, the ...
3
votes
1answer
85 views

Correct way of having loop end when required?

I'm brand new to Arduinos. I'm currently trying to modify a script from here which at the moment, simply turns an LED on or off depending on which HTTP GET request it receives. However, I want to ...
3
votes
2answers
999 views

Connect Arduino Uno to video camera's web Server via Ethernet (not working)

I work with cameras in the film and TV industry. A project I have just started tinkering around with is building an Arduino Uno-based box that would automatically collect the metadata (settings, etc.) ...
2
votes
1answer
5k views

What is the proper way to send data through http using sim908?

Preamble: I have a sim908 shield and I'm trying to send some data periodically to a server using AT commands. For every command, I wait for the response to check if everything is working. Actually ...
2
votes
1answer
3k views

How to post JSON data from Arduino?

I want to post data that I'm getting from the sensor every 5 seconds to my application in JSON format. Initially, I'm getting data as int and converting into String. For example: if data=15, it is ...
2
votes
2answers
714 views

ESP8266 Soft Access Point: Timeout of request of resource when not responded to in set undocumented time

I'm experimenting with the ESP8266 chip on a Wemos D1 R2 board. I'm trying to write some code which will allow the user to input a username and password in an HTML form then get a response as to what ...
2
votes
1answer
628 views

How to correctly serve a webpage from an SD card

It's been days that I'm trying to figure it out how to edit this perfectly working code in order to load load a webpage from the sd card. #include <SPI.h> #include <Ethernet2.h> byte mac[]...
2
votes
0answers
108 views

Cannot POST to server. HTTP code -1. NodeMCU

I am trying to make a POST request with NodeMCU, but I get a HTTP status code -1. Code: #include <ESP8266HTTPClient.h> #include <ESP8266WiFi.h> #ifndef STASSID #define STASSID "Wifi" #...
2
votes
1answer
967 views

How to send HTTP request to specific port using Ciao?

I currently have a working REST client on my arduino, but the requests always go to port 80, how do I make it send the request to a specific port? This is my current code: /* File: RestClient.ino ...
2
votes
2answers
17k views

How to post HTTP POST requests on my website?

I am working on a NodeMCU board to post sensor data on my website service. Basically my project is about POST and GET requests both in single code. I am succeeding in sending GET requests from my ...
1
vote
1answer
2k views

Parse HTTP Request Arduino

I am sending a HTTP Request to my WiFi module http://192.168.4.1/STA/ID=HelloWorld/Pass=Testin123 How can I parse above string in Arduino. First I need to check for STA, if it exists, continue to ...
1
vote
1answer
63 views

PUT request: PHP code to Arduino HTTPClient

I'm uploading a file to Azure blob storage using REST API request. The file uploaded successfully using PHP curl request. But when I transfer the code into ESP32 HTTP client I'm getting an ...
1
vote
1answer
1k views

How to HTTP post a data to Node express API from a Arduino esp8226?

I am HTTP posting a data to this web API https://morning-cliffs-85779.herokuapp.com/api/users from an Arduino connected to esp8226. I am using the wifiesp library to HTTP_POST data. The REST APIs are ...
1
vote
1answer
283 views

How to establish a connection between an Arduino and a web server via ESP8266 [duplicate]

I'm working on a IOT project where three or more IOT device communicates with a web server. The IoT device will have Arduino UNO which is connected to a ESP8266 so internet access is available. ...
1
vote
1answer
4k views

Parsing HTTP get response to extract values

Basically I created a web page to control 4 channel relay, then I made an HTTP get request from that page and got the following response: Linked T+CIPSEND=4,50 > GET /ard/sensor.html HTTP/1.1 ...
1
vote
1answer
3k views

Sim800l gsm module cannot connect gprs data

I am a rookie to arduino. I am trying to access MQTT server using Sim800l coreboard GSM module with Adafruit Fona/Tinygsm library but failed.So I decided to check http GET/POST request with AT command ...
1
vote
1answer
171 views

Help with my DHT22 sensor and using GET request

For some reason using my DHT22 sensor I keep getting "NaN". I have tried using older versions of the DHT22 sensor library as suggested by a few of my searches, but it still doesn't fix the issue. ...
1
vote
1answer
107 views

Arduino HTTP Request Fails Slow Cellular Connection

Setup: Arduino Mega 2560 w/ Wiznet W5500 Ethernet Sheild Using TP-Link TL-MR6400 LTE router to connect to internet over cellular connection in Uganda. Using an HTTP Post with the following, ...
1
vote
1answer
27 views

HTTP myphp request error RFID

This program is a program which readings of rfid are saved to myphp database. I have a problem when running the code The wifi is connected but when the code doesn't save im assuming that the problem ...
1
vote
1answer
375 views

How to build a valid HTTP Response. Recv failure: Connection reset by peer

I'm developing an Arduino server that should respond with a message when it receives a POST Request. If I test my project with a HTTP Client (like insomnia or postman), I get an error: Error: ...
1
vote
1answer
86 views

Arduino Uno with Adafruit CC3000

I am using Arduino Uno with Adafruit CC3000 wifi shield to connect to the internet and get data for Arduino. Everything works fine but I can't figure out how to use HttpClient library. The code is: #...
1
vote
1answer
2k views

How to connect Arduino with ESP8266-11 WiFi module to 000webhost (free webhosting)

I want to know how to connect my Arduino to my website on 000webhost.com (free webhosting account). I'm using ESP-11 WiFi module and it is connected to the internet. This is my Arduino code: #...
1
vote
2answers
883 views

POST to server using ESP8266 module- Arduino Uno- AT+ commands

I'm trying to send a set of data in Json format to a server I have set up which has a specific URL and an access token. The server requires a POST command. So my final URL is: http://myurl.com/...
1
vote
1answer
5k views

How to send data in response to HTTP get request from ESP8266?

I'm trying to control some RGB LEDs with ESP8266. I have built an HTML page to set the color and send the RGB color code to the ESP using HTTP get request. Everything works as expected. I just want to ...
1
vote
1answer
474 views

How to structure data for HTTP upload

I'm building a GPS tracker using an arduino nano, Adafruit Ultimate GPS breakout, a SD card slot and a SIM800L module. So far everything works, the tracker uploads the data to a server as well as ...
1
vote
1answer
2k views

ESP8266 Web Server Crash + Arduino IDE

I am working on HTTP GET Request. I have created ESP wifi as web server. It creates a access point with IP address : 192.168.4.1 When my android app is connected to web server, it sends values every ...
1
vote
1answer
51 views

Why is the result shorter than expected when I do longString.toCharArray(bigCharArr, longLength)?

I'm running this on a Particle Photon, but I think the issue is just me failing at C++. I'm trying to retrieve some JSON data from a HTTP API, convert it to JSON, and then extract a few values for ...
1
vote
0answers
238 views

Arduino HTTP post image to external server

I'm trying to send an image from SPIFFS to my external server. When pictures are taken, they are saved into "/pics/" directory within SPIFFS. Ultimately, I'd like to post all the images saved onto "/...
1
vote
1answer
43 views

Connecting NodeMCU through internet [closed]

I have a NodeMCU and a website (free website domain provided by http://www.hpage.com) and I have to send and receive some data (suppose a 8bit number) from the website to the NodeMCU via internet. The ...
1
vote
0answers
181 views

HTTP GET fails from ESP8266 to Emoncms

I've tried the code with emoncms.org as well and the results are identical; one parameter posts fine, but when I include the second parameter in the JSON I get HTTP 400 Bad Request from nginx and I'm ...
1
vote
0answers
460 views

Exporting an html for esp8266

EDIT: Added "web page source" ("In the end", :D ) (Please, sorry if this question isn't in the right place, feel free to move it to that place) Here I have a problem: In my house I have a self-...
1
vote
0answers
1k views

Sending data from webserver to Arduino

Hello Arduino enthusiasts! I've been working on a keypad lock system for school lately and I need some advice.Basically, my code checks if the entered passcode is the same than a predefined passcode ...
1
vote
0answers
30 views

Serve currently uploaded code from Arduino

I'm creating a project where multiple ESP8266 12-E's are connected together. I want to use ArduinoOTA with the HTTP option (described here) and I want to have one ESP be able to send its code to ...
1
vote
0answers
181 views

ESP8266 exception if sending TLS-POST-request for a couple of iterations

Problem I send sensor measurements from an Arduino to -> AWS APIGateway -> Lambda -> CloudWatch, which works but only for a couple of minutes, then a stack-trace is shown and the program stops. ...
1
vote
0answers
1k views

Convert String data To char Array in Arduino

I'm able to get json data and storing in String object, now i want to convert string into Char Array for parsing json data I'm tried with this code, but it is not responding String data = http....
1
vote
1answer
3k views

HTTPS with ESP8266WebServer?

I see many ESP8266HTTPClient examples, pasting in a fingerprint from an outside website, but I want to host an html page from the ESP8266 in AP mode using HTTPS. Judging by the lack of examples, and ...
1
vote
0answers
859 views

Send HTTP get request from GSM SIM800c and Arduino

I am trying to send Get request from my GSM Module but after connecting to server it is not responding any thing #include <SoftwareSerial.h> SoftwareSerial myGsm(2,3); void setup() { myGsm....
1
vote
1answer
612 views

Arduino only sends HTTP 1.0 requests

I'm trying to connect to an http server that uses HTTP 1.1, my problem is that even thought the request is in HTTP 1.1 format and the server does actually use HTTP 1.1(I tried it in a browser) it only ...
1
vote
0answers
356 views

Why does my ESP8266 making an HTTP request to an MDNS responder keep getting redirected to my ISP's search engine?

I have two ESP8266's trying to talk to each other, a 'host' and a 'client', if you will. I have the ESP8266mDNS.h responder running on the host at esp8266wifi.local. On sending an http GET request to ...
1
vote
0answers
817 views

Exception 29 ESP12E Arduino

I am getting exception 29 every time I make request to HTTP using GET function. I am requesting HTTP every 20-30ms but using millis I am only reading request at 100ms in order to avoid any overflow or ...
1
vote
1answer
11k views

POST data from Arduino to website

I am working on a project where I am trying to send data using HTTP and POST method from my Arduino Mega2560 to a website which I host on localhost. I am living to a students' accommodation and thus, ...
1
vote
0answers
516 views

Sim900 data logging through Sparkfun

I've been trying to upload data to data. Sparkfun's servers using HTTP commands, but I've hit errors every time I try. This is my code: #include <String.h> void setup() { Serial1.begin(...
1
vote
1answer
1k views

HTTPS Client with MKR1000

I am making an IoT device with the MKR1000. As a part of the process, I would like to set up an HTTPS connection to https://hit.tl8.co/api/ping (This is a website I have made and control). The ...
0
votes
3answers
300 views

Arduino and a Web Server

I'm here because I couldn't find any answer anywhere and the problem seems pretty easy and hard in a same time. I have a website, for exemple : My_website.host.fr I have arduino's sensors at home, ...
0
votes
1answer
699 views

ESP8266 GET request code -1

I've read several other posts but I still couldn't solve the issue. I'm trying to connect to a website which is HTTP (not HTTPS) but I always get code -1 as response. If I open the link in the browser ...
0
votes
1answer
1k views

ESP8266 Bad request error 400

#include <ESP8266WiFi.h> const char* ssid = "Tonosh"; const char* password = "a43056043"; const char* host = "192.168.8.107"; void setup() { Serial.begin(115200); delay(10); ...
0
votes
1answer
687 views

Arduino HTTPClient passing string to variable

For some reason I can't seem to pass a simple string from one variable to another. Below is my code: HTTPClient http; // Declare an object of class HTTPClient http.begin(address); // Specify ...
0
votes
1answer
41 views

Is there a simple HTTP(S) library that doesn't rely on WiFi?

I'm trying to implement a Mobile Network (only) for the ESP32 using Arduino IDE. So to be able to connect to website up/download files etc. I need to be able to handle various HTTP PUT/GET/POST ...
0
votes
1answer
1k views

Faster way to parse a HTTP response in Arduino

I send a GET http request to a server and get following data back. HTTP/1.1 200 Content-Type: application/json;charset=UTF-8 Transfer-Encoding: chunked Date: Fri, 16 Nov 2018 16:30:05 GMT Connection:...
0
votes
1answer
426 views

ESP8266 upload data to google cloud platform

I am trying to upload information to my appspot created with Google App Engine. I am able to do it when I in my browser type: http://myname.appspot.com/query?city=Copenhagen&temp=20&id=website ...