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
-1
votes
1answer
4k 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); ...
1
vote
0answers
641 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-...
0
votes
1answer
881 views

Response from ESP8266 is returning unknown characters

I'm working on a project with Arduino UNO that needs connection with a cloud server, that is why I'm using ESP8266 module. I'm already connecting to wi-fi and making GET and POST request but my ...
0
votes
1answer
1k 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 ...
-1
votes
1answer
1k views

Arduino SocketIO library not working over HTTPS

I am currently using this Socket.io library to be able to send data from the Adafruit Feather HUZZAH (based on ESP8266) to my NodeJS server. It works like a charm on my local webserver, never failing ...
1
vote
1answer
178 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: #...
0
votes
1answer
359 views

Error to make a request using Arduino Uno and ESP8266

I'm using Arduino Uno and ESP8266 in a project. I'm using AT Commands to connect to wi-fi and make a request. I'm using the monitor serial to test the code before compile it in arduino. It is ...
0
votes
1answer
269 views

Android phone can't get ESP8266WebServer page if Content-Length > 1460

I uploaded the following sketch to my ESP8266: #include <ESP8266WiFi.h> #include <ESP8266WebServer.h> ESP8266WebServer server(80); String toServe; void serveShortString() { server....
0
votes
1answer
1k views

How to protect link/url form ESP-12E for controlling LED

I am using ESP8266 ESP-12E NodeMCU for controlling LEDs and Relay. When ESP-12e power on it connect into my home wifi network and it gives IP address such as 192.168.0.104, and by that I can control ...
1
vote
0answers
313 views

HTTP GET request only works sometimes

I am sending a HTTP GET request to a server I deployed on digital ocean (Ubuntu/Node.js). On the web browser when I go to my URL 'http://Server_Ip_Address/event/astarttime' or 'http://...
2
votes
0answers
2k 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 ...
2
votes
0answers
34 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
1answer
6k 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
0answers
693 views

Follow redirect of a captive portal with NodeMCU 0.9

What am I doing? Trying to connect to a free wifi with a Nodemcu 0.9. What I have already done? Connecting and loading a test page in order to be redirected to the login page Connection code: ...
1
vote
1answer
27k 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 ...
0
votes
1answer
5k views

Reading data from ThingSpeak via Arduino Uno+ESP8266

I am integrating thingspeak and arduino plus Esp8266 mean making a simple project which contain my android app to update the thingspeak channel and then want to read the data of that channel via ...
1
vote
0answers
235 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
votes
1answer
3k views

Esp8266 and HttpClient not working properly

I am working on a project to send data to an API. Here is my code #include <ESP8266WiFi.h> #include <ESP8266WiFiMulti.h> #include <ESP8266HTTPClient.h> #define USE_SERIAL Serial ...
0
votes
1answer
908 views

"Bad request" error (HTTP) while posting to PHP server using Arduino and ESP8266

I'm doing an IoT project where the temperature and humidity values from a DHT11 sensor is sent to a PHP server using HTTP post. When I run the Arduino, the Serial Monitor says "Bad request". The ...
0
votes
1answer
3k views

Arduino HTTP Post request

I have a Arduino Mega with Wiznet 5100 Ethernet shield. Am trying to post some data onto localhost for started later on which will be accepted by a website. But when I try to post the data I get some ...
2
votes
1answer
4k 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
0answers
2k 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
0answers
358 views

Receiving incomplete HTTP request

I have an Arduino project that needs to receive data from ThingSpeak. This is the data that I'm supposed to get. When the data is "true" it must turn the LED on. I tried this code in hope of getting "...
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
1answer
2k views

HTTP PUT method on NodeMCU

I am trying to update values to Firebase. According to Firebase: curl -X PUT -d '{ "first": "Jack", "last": "Sparrow" }' \ 'https://[PROJECT_ID].firebaseio.com/users/jack/name.json' We can update ...
1
vote
1answer
3k 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: #...
2
votes
2answers
2k 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 ...
0
votes
1answer
2k views

ERROR on SIM900AT comand HTTPDATA (POST method)

Good day community, I have a project which is VEHICLE GPS Tracker and I'm using Arduino Mega, NEO GPS6MV2 and SIM900. I'm using SIM900 to send the GPS coordinates on a web server. I'm using the POST ...
1
vote
1answer
5k 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 ...
0
votes
1answer
1k views

Communication with ESP, HTTP requests or WebSocket?

Here is my problem. I'm working on making a wifi addressable RGB LED (like WS2812b) controller, I'm using an ESP8266 as the hardware. I'm also creating a phone application for controlling the device ...
1
vote
2answers
1k 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/...
0
votes
1answer
155 views

Specifying port in Ciao.write

As far as I know, Ciao uses port 80 as the default and I haven't found a way of changing the port it attempts to connect to. I tried using "192.168.0.23:8080" but the Ciao.write() seems to timeout ...
1
vote
2answers
2k 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
942 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 ...
0
votes
1answer
3k views

Error 400. The request has an invalid header name ESP8266 (HTTP-POST)

I'm trying to send a http post to my server from an esp8266-Wifi (I use the ESP8266 library) I check all my http post format, and I guess is okay... but at the response, the monitor serial answer me ...
2
votes
1answer
204 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. ...
0
votes
1answer
738 views

TLS Client ESP8266

My ESP8266 collects data and sends it to a webserver over HTTP. I would like to use TLS for this but I cannot figure out how to get ESP8266 running on the Arduino framework to use this. My curent ...
1
vote
0answers
432 views

How do I send HTTP request using ESP8266 to other port than 80?

I currently have a working connection to my ESP8266 module. However, I can only connect to a server using the port 80, is it possible to choose a different port? I can connect using AT+CIPSTART="TCP"...
1
vote
1answer
6k 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 ...
3
votes
1answer
1k 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 ...
3
votes
2answers
1k 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.) ...
1
vote
2answers
18k views

HTTP post request in JSON Format using SIM900 module

I tried to send HTTP post requests to a server in JSON Format using a SIM900 module. But the code is not posting the data. While posting the data I'm getting the error response while initializing the ...
2
votes
0answers
414 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 ...
0
votes
2answers
3k views

Problem sending data from arduino with ESP8266 to a local mysql database

i'm currently trying to send a randomly generated number from Arduino via ESP8266 wifi module to a local mysql database estabilished with xampp, but having a problem with it. Here is my arduino and ...
0
votes
1answer
733 views

Arduino Mega web server always returning JSON data even if JSON is not passed in URL

I am trying to return JSON data if JSON is found in the HTTP header, and if not I am trying to display a normal page. But instead it always displays the JSON text, even if I do not pass the JSON in ...
0
votes
1answer
87 views

HTTP request not sending [closed]

so I have a wifi shield and I am sending a web request, but its not going through. I know it's not the server because the other function of the program works properly. My code is available on pastebin ...
0
votes
1answer
76 views

Random numbers recived by wifi shield

So I am sending a web request to a server, but for some reason the result is the number: ...
0
votes
1answer
5k views

File download from SD card hangs up my ESP-12E

I'm using ESP8266 Arduino for compiling and uploading my code to NodeMCU 1.0 (ESP-12E Module). Flash Size: 4M (3M SPIFFS) CPU frequency: 80 MHz Upload Speed: 115200 I'm using portable arduino-1.6.9-...
3
votes
4answers
6k 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 ...
0
votes
3answers
168 views

Scan multiple ESP8266 [closed]

I am working on wifi based LED project which involves various ESP to be connected to router. Basically grouping of ESP has to be done. The android app sends HTTP command to IP address which is given ...