• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

HTTP Response code: 301

Q&A Forum › HTTP Response code: 301
0 Vote Up Vote Down
filip asked 2 weeks ago

I followed the ESP32/ESP8266 Insert Data into MySQL Database using PHP and Arduino IDE course and all worked fine

when after a few months i restarted but i goT the HTTP response code 301 instead of 200.

What is changed? because i think it has to do with a redirection of the website.

How can i solve this?

filip

 

4 Answers
0 Vote Up Vote Down
filip answered 2 weeks ago

I can change the graph when changing values in the post.php file
serialprint : in arduinoide esp32:

18:45:03.001 -> Received packet 'LoRaData= &value1=0&value2=8&value3=0.106' with RSSI -48
18:45:03.001 -> + Sending packet
18:45:03.001 -> httpRequestData: api_key=tPmAT5Ab3j7F9&value1=0&value2=8&value3=0.106
18:45:03.600 -> HTTP Response code: 301
but noting is received in the graph

0 Vote Up Vote Down
Rui Santos Staff answered 2 weeks ago

Hello Flip, Can you send me the domain name and web page for your domain?
Does your domain have https enabled? It might be causing a redirect from http to https

0 Vote Up Vote Down
filip answered 2 weeks ago

Home


indeed https
when i change it in the arduino ide from

const char* serverName = “http://kippentrailer.com/post-esp-data.php”;
to:

const char* serverName = “https://kippentrailer.com/post-esp-data.php”;

i get responsecode 400!

0 Vote Up Vote Down
Rui Santos Staff answered 2 weeks ago

Can you try to open a ticket on Bluehost support? Then, ask them to disable HTTPS on that specific URL

  • https://kippentrailer.com/post-esp-data.php

It looks like they’ve activated some code in your server to enable https on all pages.
Let me know if they got back to you and what they told you to change. Thanks!

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.