Skip to main content
Arduino

Return to Answer

replaced https://tools.ietf.org/html/rfc with https://www.rfc-editor.org/rfc/rfc
Source Link

Take a look at the HTTP specification HTTP specification:

Request = Request-Line ; Section 5.1
 *(( general-header ; Section 4.5
 | request-header ; Section 5.3
 | entity-header ) CRLF) ; Section 7.1
 CRLF
 [ message-body ] ; Section 4.3
Request-Line = Method SP Request-URI SP HTTP-Version CRLF

You don't send the CRLF (carriage return, line feed) at the end of your request line and at the end of the header at the same time of the request. Why the delay?

You also miss the obligatory host header.

Host = "Host" ":" host [ ":" port ] ; Section 3.2.2

Take a look at the HTTP specification:

Request = Request-Line ; Section 5.1
 *(( general-header ; Section 4.5
 | request-header ; Section 5.3
 | entity-header ) CRLF) ; Section 7.1
 CRLF
 [ message-body ] ; Section 4.3
Request-Line = Method SP Request-URI SP HTTP-Version CRLF

You don't send the CRLF (carriage return, line feed) at the end of your request line and at the end of the header at the same time of the request. Why the delay?

You also miss the obligatory host header.

Host = "Host" ":" host [ ":" port ] ; Section 3.2.2

Take a look at the HTTP specification:

Request = Request-Line ; Section 5.1
 *(( general-header ; Section 4.5
 | request-header ; Section 5.3
 | entity-header ) CRLF) ; Section 7.1
 CRLF
 [ message-body ] ; Section 4.3
Request-Line = Method SP Request-URI SP HTTP-Version CRLF

You don't send the CRLF (carriage return, line feed) at the end of your request line and at the end of the header at the same time of the request. Why the delay?

You also miss the obligatory host header.

Host = "Host" ":" host [ ":" port ] ; Section 3.2.2
added 20 characters in body
Source Link
tttapa
  • 1.3k
  • 1
  • 8
  • 10

Take a look at the HTTP specification:

Request = Request-Line ; Section 5.1
 *(( general-header ; Section 4.5
 | request-header ; Section 5.3
 | entity-header ) CRLF) ; Section 7.1
 CRLF
 [ message-body ] ; Section 4.3
Request-Line = Method SP Request-URI SP HTTP-Version CRLF

You don't send the CRLF (carriage return, line feed) at the end of your request line and at the end of the header at the same time of the request. Why the delay?

You also miss the obligatory host header.

Host = "Host" ":" host [ ":" port ] ; Section 3.2.2

Take a look at the HTTP specification:

Request = Request-Line ; Section 5.1
 *(( general-header ; Section 4.5
 | request-header ; Section 5.3
 | entity-header ) CRLF) ; Section 7.1
 CRLF
 [ message-body ] ; Section 4.3
Request-Line = Method SP Request-URI SP HTTP-Version CRLF

You don't send the CRLF (carriage return, line feed) at the end of your request line and at the end of the header at the same time of the request. Why the delay?

You also miss the obligatory host header.

Host = "Host" ":" host [ ":" port ] ; Section 3.2.2

Take a look at the HTTP specification:

Request = Request-Line ; Section 5.1
 *(( general-header ; Section 4.5
 | request-header ; Section 5.3
 | entity-header ) CRLF) ; Section 7.1
 CRLF
 [ message-body ] ; Section 4.3
Request-Line = Method SP Request-URI SP HTTP-Version CRLF

You don't send the CRLF (carriage return, line feed) at the end of your request line and at the end of the header at the same time of the request. Why the delay?

You also miss the obligatory host header.

Host = "Host" ":" host [ ":" port ] ; Section 3.2.2
Source Link
tttapa
  • 1.3k
  • 1
  • 8
  • 10

Take a look at the HTTP specification:

Request = Request-Line ; Section 5.1
 *(( general-header ; Section 4.5
 | request-header ; Section 5.3
 | entity-header ) CRLF) ; Section 7.1
 CRLF
 [ message-body ] ; Section 4.3
Request-Line = Method SP Request-URI SP HTTP-Version CRLF

You don't send the CRLF (carriage return, line feed) at the end of your request line and at the end of the header at the same time of the request. Why the delay?

You also miss the obligatory host header.

Host = "Host" ":" host [ ":" port ] ; Section 3.2.2
lang-cpp

AltStyle によって変換されたページ (->オリジナル) /