How do I request it via http?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

error.png

Good morning.

I want to make an http request.

However, the default setting for this project is https.

If you change the port number, you are still sending https requests.

How do I request it via http?

I am a beginner.

0 Likes
1 Solution
GauravS_31
Moderator
Moderator
Moderator
10 questions asked 250 solutions authored 250 sign-ins

In the function http_client_connect( &client, (const wiced_ip_address_t*)&ip_address, SERVER_PORT, HTTP_USE_TLS, CONNECT_TIMEOUT_MS ), replace HTTP_USE_TLS with HTTP_NO_SECURITY and change the SERVER_PORT to 80. Port 443 is reserved for HTTP over SSL/TLS (or HTTPS) and port 80 is reserved for HTTP.

View solution in original post

1 Reply
GauravS_31
Moderator
Moderator
Moderator
10 questions asked 250 solutions authored 250 sign-ins

In the function http_client_connect( &client, (const wiced_ip_address_t*)&ip_address, SERVER_PORT, HTTP_USE_TLS, CONNECT_TIMEOUT_MS ), replace HTTP_USE_TLS with HTTP_NO_SECURITY and change the SERVER_PORT to 80. Port 443 is reserved for HTTP over SSL/TLS (or HTTPS) and port 80 is reserved for HTTP.