We wanted to make HTTP or HTTPS request to location:
arduino.php5.sk for HTTPS (if HTTP connection i must use www.arduino.php5.sk)
We used Arduino Uno to communicate with it. I have used voltage divider for RX pin on ESP.
After connecting to hotspot, we were trying many veriants of connection:
VARIATION 1:
AT+CIPMUX=0
AT+CIPSTART="TCP","www.arduino.php5.sk",80
AT+CIPSEND=74
GET /tomas/data.php?hodnota=56 HTTP/1.1\r\nHost: www.arduino.php5.sk\r\n\r\n
VARIATION 2:
AT+CIPMUX=0
AT+CIPSTART="TCP","arduino.php5.sk",443
AT+CIPSEND=42
GET /tomas/data.php?hodnota=8 HTTP/1.1
Host: arduino.php5.sk
Connection: keep-alive
VARIATION 3:
AT+CIPMUX=0
AT+CIPSTART="TCP","www.arduino.php5.sk",80
AT+CIPSEND=110
GET /tomas/data.php?hodnota=57 HTTP/1.1\r\nHost: www.arduino.php5.sk\r\nUser-Agent: NodeMCU\r\nConnection: close\r\n\r\n
But it isnt working there is sometimes bad output like baud rate, but not still and I receive only header for HTML 2.0 BAD request or nothing...
Can somebody help me?
Target location is for HTTPS: https://arduino.php5.sk/tomas/data.php?hodnota=57 or with another value...
Target location is for HTTP: http://www.arduino.php5.sk/tomas/data.php?hodnota=57 or with another value...