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
0 votes
1 answer
20 views

EspAsyncWebServer process HTTPS to HTTP

I read this issue. But I didn't understand it. Like the author I don't have an SSL certificate and I don't want to have one (because if I had one I could live with HTTPS!). I just want to process any ...
  • 293
1 vote
0 answers
24 views

ESP32-S3 - HttpClient only returns 200 status code no JSON payload data

I have a ESP-S3 board and am trying to get JSON data from our server. I am using the following code (see below) as a basis for mine. This code works. If I change http://jsonplaceholder.typicode.com/...
  • 11
0 votes
0 answers
20 views

ESP8266 node timing out after python socket connection

I have an ESP8266 Node MCU device running arduino HTTP server. Before sending the device a request, I want to verify it is listening to the correct port with python. I do: s = socket.socket(socket....
0 votes
0 answers
55 views

ESP8266 crashes at the very end of the code

The program receives variables from a website and 2 sensors, then moves a motor accordingly, the issue is that this code get to the very end, until it displays 7, and then just when it should finnish ...
0 votes
0 answers
60 views

Sim7600 use HTTPS with TCP/IP AT commands?

I have a sim7600A-H and I'm trying to use the Firebase realtime database REST api to send the device's coordinates The api requires https, so I originally used the AT+HTTP commands to send data. But ...
-2 votes
1 answer
33 views

https post using custom "Fetch" lib [closed]

I`m trying to do POST request to my ssl server, using https. Here is my arduino code example: #include "recipes/WiFi.h" #include "Fetch.h" #define SSID "My_wifi_name" #...
  • 1
0 votes
0 answers
152 views

Stream data using Firebase Realtime Database rest api with nodeMCU client

I have data on firebase rtdb, which i want to listen in my nodemcu. I know there are libraries available like this one which provides listeners, but i want to do it using REST API streaming as ...
  • 11
-1 votes
1 answer
432 views

POST request (HTTPClient) with ESP8266 not working on localhost (http code = -1)

I've been looking around for a solution, but couldn't manage to find one. I'm looking to send a post request from an ESP8266 on a local API. Here is my code : #include <ESP8266WiFi.h> #include &...
0 votes
1 answer
100 views

Connect to 8Base API with TLS on Arduino Uno Wifi Rev2

I'm trying hit some endpoints on the 8Base API with the Arduino Uno Wifi Rev2. I was able to get this API call to work with Postman, but I've had no luck once I convert it to my Arduino code. In ...
-1 votes
1 answer
232 views

Use of ESPAsyncWebServer.h with ArduinoJson version 6 for Master-Client transactions

I want to communicate two (2) ESP32's via Json commands using ESPAsyncWeb.h. The master should have specific operations to execute and respond to the client, and the client should be able to send ...
1 vote
0 answers
210 views

ESP32 - SIM800 - HTTPS lwIP

I am using ESP32 and SIM800L for my project. The SIM800L does support SSL, TLS 1.0, and TLS 1.1. But web servers nowadays usually support only TLS 1.2 and 1.3. I heard, that the ESP32 HTTPS client can ...
  • 23
1 vote
1 answer
103 views

MAX30100 and ESP8266 NodeMCU Serial Errors

This is my final year project and for some reason, the max30100 sensor defaults to static values once the HTTP post request has been performed. #include <ESP8266WiFi.h> #include <...
0 votes
1 answer
145 views

What GSM module I should use for HttpClient, ArduinoHttpClient, WebSockets etc.?

I need to use some API in my project. So I'm gonna use such libraries as listed in the title? What GSM/SIM module do I need for this purpose? I've checked 800L and similar - it only can use plain http,...
  • 109
-1 votes
1 answer
287 views

ESP32 Access Point using ESPAsyncWebServer, how to send multiple parameters between submenu and main (index) menu while still retaining page layout? [duplicate]

I am trying to figure out how to get requests (or whatever they are called) to display in the serial monitor, yet not change the HTML page bodies. The user selects their choices in the submenu (...
  • 47
2 votes
1 answer
1k views

ESP32 Access Point and HTTP Web Server, how to send multiple parameters?

I made this minimal example in order to figure out how to get requests (or whatever they are called) to display in the serial monitor. However, none of the query parameters (in the URL) can be seen in ...
  • 47
2 votes
0 answers
283 views

HTTPClient works with localhost but not server

I started to work with HTTPClient and the WiFly library to connect to an SSID and then send POST data to a server. When I was sending the data to my localhost, it was working on localhost, but when ...
1 vote
0 answers
191 views

ESP8266 How to run MQTT Client and Http Client in one loop

Scenario: Existing project: read soft serial then do http post New project: MQTT player from other (MrDIY / MrDIY Audio Notifier · GitLab) Objective: Combine together (Result: successful ) Issue: When ...
  • 11
1 vote
1 answer
68 views

WiFi.h library, Issues with client.print()

I have an esp32 development board that I am trying to use to get Bitcoin price data using the Coinbase api. On the Coinbase developers website, they give this example Curl command to get Bitcoin price ...
  • 13
1 vote
1 answer
268 views

Simple GET request is failing silently

I'm trying to make a simple GET request to a server (which has a static IP but does not have a name). I'm using EtherCard library and a cheap ENC28J60 Ethernet Module. The basic configurations are OK (...
1 vote
0 answers
133 views

Error Performing HTTP GET request on google sheets (Apps Script) using TTGO T-CALL

I've tried using several libraries such as TinyGSM, SoftwareSerial, AT commands but I'm guessing the problem to be with my GET request url is https://script.google.com/macros/s/GAS_ID/exec?tag=1234&...
1 vote
1 answer
428 views

HTTPS GET request working on esp32 but not on esp8266

I'm trying to port my esp32 program to esp8266, and i've come across a problem where i can't get a response from a HTTPS GET request on esp8266, but on my esp32 the same code works fine. The function ...
  • 95
0 votes
1 answer
842 views

How to send int array with ESP8266 http post request?

I'm reading RFID cards' UID with an ESP8266 and trying to send that information to my web server hosted on a Raspberry Pi. I'm currently storing the UID in an int array, but the http.POST(); function ...
1 vote
0 answers
396 views

Error 1,603,0 when http post request using arduino and sim900a by Json format

I want to send HTTP post requests to a server in JSON Format using a SIM900 module. But the code is not posting the data and have an error.Can someone help me to solved the error 1,603,0 since I ...
0 votes
2 answers
1k views

Arduino ESP8266 HTTPS Request returning empty response

I want to get some JSON data from a HTTPS secured Webserver using a ESP8266. For some reason I'm getting an empty response, I believe there's an error parsing the GET request. In Chrome I get the JSON ...
1 vote
0 answers
155 views

Http Client requests

I am working on a project where the ESP 8266 sends a very long string about 3000 chas over http as client. Likewise sensor data are determined. The loop repeats itself every 250ms. Now I noticed that ...
1 vote
2 answers
1k views

SIM A9G: +CME ERROR: 53 failure

I'm using a SIM A9G. When I send HTTP GET command from the serial monitor, it responds. But, it doesn't work when included in the code. #include <SoftwareSerial.h> SoftwareSerial myserial(8, 7);...
  • 19
1 vote
0 answers
416 views

Trying to improve speed of downloading files from server and writing to SPIFFS

update I have updated the code(second code segment) so that the null character is inserted into the array which solves the problem of writing past the end of the array. in order to stop the program ...
0 votes
1 answer
99 views

Whats wrong with my POST request?

Ive been trying to get POST working on my ESP8266. I followed this tutorial https://techtutorialsx.com/2016/07/21/esp8266-post-requests/ which works, but once i change the request URL to anything else ...
  • 19
-3 votes
1 answer
72 views

How to put a condition on HTTP.POST?

I set my code to if it executes HTTP.POST, the count will reset / back to zero, but I noticed that even it returns other http code than 201 (-1 or 500), the count still resets. How to put a condition ...
  • 17
0 votes
1 answer
37 views

How to reset the count/data after HTTP.POST?

I have a project that records interrupts from a reed switch to nodemcu. It records like this: 0.3,0.6,0.9,1.2 Then what I want to happen is to go back to zero when it successfully HTTP.POST to a ...
  • 17
0 votes
1 answer
378 views

HTTP_GET not clarified in scope

I'm trying to do an async webserver with access point using an ESP32. It's a little bit of a mix between This tutorial for AP and async and this tutorial since it's also with an async webserver and it ...
-1 votes
1 answer
43 views

HTTP-POST returns 400 when posting a value from the sensor

I'm trying to POST the data of total, but it returns 400. but when I try a sample data like int httpResponseCode = http.POST("{\"amount\":\"total\"}"); (400) into int ...
  • 17
1 vote
0 answers
44 views

Peculiar relay behavior from POST

I am trying to toggle on/off between two separate HTTP request. One submit button to turn it on, and another separate submit button to turn it off. I expect the device to launch in the off/low 0V ...
  • 201
1 vote
1 answer
1k views

Making HTTPS requests using ESP8266 AT commands

I am trying to make HTTPS GET/POST requests to the following server using AT commands. AT+CIPSTART="TCP","54.166.71.140 ",443 I get errors when i use port 443 but on port 80 the ...
2 votes
0 answers
620 views

GET/POST request via AT Commands

I am trying to send a simple GET/POST request to a dummy end point on https://requestbin.com/. I am using an ESP8266 module. I am using the arduino serial monitor to send these AT commands. I connect ...
3 votes
1 answer
2k views

Arduino Library to make http post request with bearer authentication

I want to make an Http Post request with Bearer Authentication to my api using my Arduino Mkr Wifi 1010, but I couldn't find the appropriate library to do something like this (code generated with one ...
1 vote
3 answers
136 views

variable name standards, e.g best method to send motion_detect=true

I am working with some sensors and sending data to a public web server via http, I was thinking this server can be possibly used by more people to send their data and server displays a chart. I was ...
  • 242
0 votes
1 answer
312 views

Reading and Writing to a JSON File on the Desktop from Arduino?

I'm fairly new to Arduino. I'm working on a project where I'm making HTTP requests using a python code and this lets me read and write to a JSON file on my desktop. I have an Arduino with sensors that ...
  • 21
3 votes
0 answers
363 views

ESP32 HTTP Server request interrupts Telnet session

I have an ESP32 application that uses a web server as a user interface. For auditing and debugging during development I use Serial; however, that is impractical in the installed system. So, I decided ...
1 vote
1 answer
55 views

Frequency of Retrieving Data from Website

I have wrote a code that communicate with my website to retrieve data to power on or off a 5V relay. I'm running the code every second to make sure it is real time. Is there more efficient way to tell ...
1 vote
1 answer
172 views

Send JSON body with SIM900 board

I'm trying to send JSON, but i'm not able to set Content-Type header. Other commands are successful: [23:49:41:856] AT+SAPBR=3,1,"CONTYPE","GPRS"␍␊ [23:49:41:899] ␍␊ [23:49:41:899] ...
0 votes
1 answer
2k views

esp32 http client response only 200 didn't receive the data after that

i am using esp32 as a client and using following example. So here i am getting header response only that is 200. I am not getting any response after that. here is the example #include <WiFi.h> #...
1 vote
3 answers
2k views

ESP8266 not responding after random intervals of time

4th Update: I bought an ESP32 (the successor to ESP8266) and am getting the same problem. I used the same code except used the Wifi.h library instead, also removed the ESP8266WiFiGratuitous.h code. I ...
0 votes
3 answers
1k views

How to replace String objects with char arrays while still using string methods

I am running the following code on my ESP8266 (AI-Thinker ESP8266MOD). I send an HTTP GET request and a pin is set to high for a 1/2 second. However, after some time (sometimes 1hr, 2hrs, 12hrs, ...
2 votes
1 answer
201 views

Securing ESP8266 connections

In my setup, I've got a number of ESP8266 devices around my home controlling various devices like my boiler and some lights. They're all controlled by a central smart hub on a Raspberry Pi with a ...
  • 165
1 vote
1 answer
170 views

Arduino Nano IoT 33 Char Array size constraints

I would like to save data that I am receiving from API calls in a char array. The problem is the data is around 80KB however my Arduino IoT 33 has 32KB of memory. It will save data in a char array ...
  • 21
0 votes
1 answer
3k views

HTTP POST from Arduino/ESP8266/ESP32 How to send parameters (x-www-form-urlencoded)

EDIT: Thank you for the answer, also we had figured out how to do it Micropython too - I believe that it is relevant for the Arduino/ESP8266/ESP32 community to share this too. https://github.com/...
  • 103
1 vote
1 answer
313 views

Sending Variable to IFTTT via ESP32 using Asynchronous Web Server

I have been trying to send three variables to IFTTT from my ESP32 using Asynchronous Web Server. However, I couldn't set the "URL" that was supposed to be the response that will trigger my IFTTT. Here'...
1 vote
0 answers
56 views

Parsing Data from local websever

i´m trying to build a little monitor of an ESP8266 and an OLED display that displayes the Status of a Robotarm. The robotarm is controled by a RAMPSboard that has a webserver, so i can check the ...
0 votes
1 answer
235 views

random soft wdt reset while request

i am making post requests with esp8266 on nodeMCU. i have a messy code so i dont want to annoy you with showing it here. the problem is i get soft wdt reset time to time while making request. for ...