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.

49 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
107 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
966 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
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
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
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
0answers
355 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
816 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
0answers
515 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
0answers
21 views

How to send JSON on a http POST request using an ESP8266?

I'm working on a project aimed on sending alerts via SMS. I signed up for a SMS service that works via HTTP requests (REST standard). I need, then, to send data as JSON, so that their server processes ...
0
votes
0answers
36 views

Arduino Uno + Sim808 GPS dont work with GSM

I am trying to get GPS data and pass it through GSM (Http Get Request). The GPS codes part works fine alone, also HTTPRequest part lonely. But when i use them together , the module don't get GPS data ...
0
votes
1answer
28 views

Http request change delay

i'm noob in coding i try to make some led blink ( with succes ) and now i would like to add http request to change delay. i have no error compiling the code but it dont work any idea ? Thanks ...
0
votes
0answers
25 views

Problem in fetching http get request after put float number

I have this codes that works correctly! #include <DFRobot_sim808.h> #include <SoftwareSerial.h> #define PIN_TX 7 #define PIN_RX 8 SoftwareSerial mySerial(PIN_TX,PIN_RX); ...
0
votes
0answers
35 views

Arduino Mega failing to connect to XAMPP database/php server to send HTTP requests

I have developed an application with a SunFounder Mega2560 with a W5100 Ethernet shield that acts as a server and successfully parses TCP message packets from a client sending in updates. I am now ...
0
votes
0answers
49 views

Send ECG data using buffer in real time to the server without using delay

I am trying to make a ECG monitoring system using Arduino, GSM and ECG sensor which data should be sent to the private server in real time. Those data are then collected via Matlab on the remote ...
0
votes
3answers
28 views

SIM800L HTTP request is not reliable

I have a question regarding SIM800L and HTTP GET request. I'm using this https://exploreembedded.com/wiki/Setting_up_GPRS_with_SIM800L simple code to communicate with SIM800l with AT commands. To ...
0
votes
0answers
28 views

Parsing the data from an HTTP POST request on a ESP8266 / wemos

I'm sending an HTTP Post request on my Android App to my Wemos D1 mini pro and want to parse the incoming data (which is a json). My current code just prints out the whole POST request and I need to ...
0
votes
0answers
38 views

Send HTTP request from Arduino UNO+ESP8266

I am trying to send an HTTP request from from an Arduino UNO through an ESP-01 connected by Serial. Communication with the ESP and connection to the AP work fine. But when i try to send an HTTP ...
0
votes
0answers
27 views

HTTP request is not being executed in Arduino script for sending sensor data to Thingspeak cloud

I am trying to send the data from DHT sensor (temperature and humidity on 2 channels of Thingspeak cloud server) and firstly display them on Thingspeak cloud. Afterwards I will need to get those data ...
0
votes
0answers
37 views

Mkr1010 disconnects and reconnects normally until it reaches a point where it never reconnects again

The board does reconnect from time to time, but there are times where it just disconnects and never reconnects again and I can't replicate the error because while I run it with Serial open and turn ON ...
0
votes
1answer
23 views

Can we call GPRS HTTP request asynchronously in Arduino?

Usually GPRS modules (SIM800,900, A6, etc) that used with arduino are called in synchronous way in HTTP (GET/POST) request. It takes more than 10 seconds in most times and this makes the system very ...
0
votes
0answers
41 views

how can i send get and post request from esp01 using arduino uno

I am using an esp8266 01 module with the Arduino Uno to establish a communication between the Arduino and my web site. I actually don't know how to send Rest HTTP requests from the Arduino to get data ...
0
votes
0answers
29 views

Error with AT+CIPSEND in ES8266 with arduino

I'm making simple web-server on esp8266 module connected to Arduino. And when +IPD,0,GET... I'm sending AT+CIPSEND=0,16. Then I write HELLOMYDEARFRIDE. It says : send 16 bytes recived. OK. But in ...
0
votes
1answer
90 views

Is it possible to do an OTA update using a GitHub link

I need to be able to download software updates through the internet without having my MKR1000 plugged in. Either that or have new code being pushed from my server (C++) to my MKR1000, and then ...
0
votes
0answers
62 views

ESP8266 webserver does not return latest HTTP response

I tried getting a HTTP response from an ESP8266 which is in HTTP server mode, I am getting a response but not the latest one, response is always one command previous to that of my request to the ESP. ...
0
votes
0answers
55 views

HTTP and HTTPS server at the same time

I'm trying to set up a HTTP and HTTPS server at the same time on an ESP8266 NodeMCU V3. The compiler however doesn't accept any other name than client otherwise no new clients will be catched. But ...
0
votes
0answers
49 views

ESP8266 reboots instead of completing HTTPUpdateServer update

I should first note that I have made some minor changes to the base code that is used by that library, instead using it as a reference. Basically, turning off unwanted actions during the update and ...
0
votes
0answers
65 views

ESP8266 http.get() issue due to wifi authentication failure

Facing a weird issue while reading data from esp8266. I am trying to read dynamic data from a demo text file on test server on same network in deep sleep mode. Case1: Joining new network I am using ...
0
votes
0answers
29 views

Arduino - Communication with the device

What is the best way for communication with device and webserver, for example I have Arduino device (connected to Wifi) with LED strip and I want to controle it from Website? Is it good way to make ...
0
votes
0answers
71 views

RS256 JWT with Arduino

I am working on a project where I am implementing JSON web tokens to validate devices on a server. I have been unable to find many resources related to RS256 JWT with Arduino or similar devices. ...
0
votes
1answer
183 views

ESP8266 HTTPS post body request with WifiClientSecure

Is there a way to post HTTPS body request in Arduino esp8266. I am able to HTTPS parameter request with WifiClientSecure library,but is not safe compared to Request Body send in POST.
0
votes
0answers
188 views

ThingSpeak writing multi fields returns HTTP error code with -301 or -302

I am using arduino and ethernet shield with ThingSpeak library to write multi fields. this sample code from docs. it is working good with 4 fields but if I want to write 8 fields in a same time such ...
0
votes
0answers
64 views

Arduino ESP8266 ESP-01S GET command

Looking for some help on this please. It is a little long winded, but the point of it is I cannot retrieve a string response via my ESP8266 ESP-01S. I connect my ESP to my Ardiuno using ...
0
votes
0answers
26 views

Not able to receive string from database

A few days ago I posted a thread as I was not being able to send data to my database online. It worked when I changed the GPS module. Now I am trying to retrieve data from the same Server and i'm not ...
0
votes
0answers
242 views

ESP8266 Server does not serve CSS file

It is the first time I try do this. I configured HTML file and it was served. I want to give style to my HTML form with internal or external CSS, but I can't. However, I used different tutorials I ...
0
votes
0answers
286 views

HTTP PUT method on NodeMCU/ESP8266

I've been trying to send a put request from my esp8266 for a while not but I can't figure out why it doesn't work and there are barely any posts about put requests online I keep getting errors around ...
0
votes
1answer
280 views

Replying with a html page in HTTP Web Server using esp01 and ArduinoIDE

Now there are many ways to reply with a webpage content to a user who is accessing the web server, But Keeping in mind to use as less space as possible, I was trying something new, Since i didnt got ...
0
votes
0answers
211 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://...
0
votes
0answers
459 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: ...
0
votes
0answers
245 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 "...
0
votes
0answers
327 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"...
0
votes
2answers
11k 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 ...
0
votes
1answer
1k views

Unable to communicate between ESP-12E module and mobile through ESP-12E router

I am newbie in Arduino. I'm trying to send data from an ESP-12E client module to a mobile via an ESP router module (I am using Arduino IDE for programming the ESP-12E). For this purpose I ...