---
title: "W55RP20 HTTP client example"
url: "https://maker.wiznet.io/Aimee0/projects/w55rp20-http-client-example/"
markdown_url: "https://maker.wiznet.io/Aimee0/projects/w55rp20-http-client-example/md"
type: "WCC: WIZnet Created Content"
author: "Aimee"
author_url: "https://maker.wiznet.io/Aimee0/"
original_author: "Aimee"
published: "2024-10-29"
language: "en"
hardware: ["WIZnet W55RP20"]
likes: 0
views: 708
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# W55RP20 HTTP client example

> This is an example of acting as an HTTP client using W55RP20-EVB-Pico.

Original author: Aimee

## Components

- **WIZnet W55RP20** x 1 ([docs](https://wiznet.io/products/ionic-chips/w55rp20))

## Documents and links

- [W55RP20 http client example](https://github.com/WIZnet-ioNIC/WIZnet-PICO-HTTP_CLIENT_C/tree/main/examples/http/client) (code)

## Article

github link : <https://github.com/WIZnet-ioNIC/WIZnet-PICO-HTTP_CLIENT_C/tree/main/examples/http/client>

### How to Test HTTP client example

**Setup board configuration**

Setup board to W55RP20_EVB_PICO in CMakeLists.txt in WIZnet-PICO-COAP_C/ directory.

```plaintext
# Set board
#set(BOARD_NAME WIZnet_Ethernet_HAT)
#set(BOARD_NAME W5100S_EVB_PICO)
#set(BOARD_NAME W5500_EVB_PICO)
set(BOARD_NAME W55RP20_EVB_PICO)
#set(BOARD_NAME W5100S_EVB_PICO2)
#set(BOARD_NAME W5500_EVB_PICO2)
```

**Setup network settings**

Setup network configuration such as IP in 'w5x00_http_client.c' which is the HTTP Client example in 'WIZnet-PICO-HTTP-CLIENT-C/examples/http/client/' directory.

```plaintext
/* Network */
static wiz_NetInfo g_net_info =
    {
        .mac = {0x00, 0x08, 0xDC, 0x12, 0x34, 0x56}, // MAC address
        .ip = {192, 168, 11, 2},                     // IP address
        .sn = {255, 255, 255, 0},                    // Subnet Mask
        .gw = {192, 168, 11, 1},                     // Gateway
        .dns = {8, 8, 8, 8},                         // DNS server
        .dhcp = NETINFO_STATIC                       // DHCP enable/disable
};
```

**Setup HTTP server configuration**

```plaintext
static uint8_t g_http_target_domain[] = "www.google.com";   
static uint8_t g_http_target_ip[4] = {
    0,
};
uint8_t URI[] = "/search?ei=BkGsXL63AZiB-QaJ8KqoAQ&q=W6100&oq=W6100&gs_l=psy-ab.3...0.0..6208...0.0..0.0.0.......0......gws-wiz.eWEWFN8TORw";
```

**Build & Run**

If the HTTP Client example works normally, you can see the network information and requests/responses to perform searches on google with the search W5500.

![](https://maker.wiznet.io/upload/ckeditor5/50543170%5F1730281101%2Epng)

---

Source: https://maker.wiznet.io/Aimee0/projects/w55rp20-http-client-example/
