301 Moved Permanently

Hi!

When I try to send HTTP Request to google.com or facebook.com I’m getting response:
“HTTP/1.1 301 Moved Permanently
Location: https://www.google.com/
…”

It’s quite strange, because it’s suggest that I’m not connected using https, but for connection I invoke:
‘AT+CIPSTART=“SSL”’, “google.com”, 443’.
What I’m doing wrong?

Best,
Mateusz

(post deleted by author)

Hi @msemegen

I don’t understand what the problem is.

I simply tested ‘www.google.com’, but no problem was found.

Could you check it again?

Hi,

You are right. My HTTP request was faulty. But I have additional question: I don’t see if You put request content after AT+CIPSEND command. Request is created automatically by the module?

Best,
Mateusz

Hi @msemegen

After AT+CIPSEND=40, the data was sent as follows.

GET / HTTP/1.1
Host: www.google.com

I sent the data like this for a simple test, so please refer to it.