# Http\_read\_data

**URL:** <https://swi-prolog.discourse.group/t/http-read-data/6263>\
**Category:** Predicate\
**Tags:** how-to, web-prolog\
**Created:** [February 17, 2023, 9:36am UTC](https://swi-prolog.discourse.group/t/http-read-data/6263 "2023-02-17T09:36:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![heiheshang](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/heiheshang/32/4419_2.png) [@heiheshang](https://swi-prolog.discourse.group/u/heiheshang)\
**Post date:** [February 17, 2023, 9:36am UTC](https://swi-prolog.discourse.group/t/http-read-data/6263/1 "2023-02-17T09:36:11Z")

</div>

i got the list from Request http\_read\_data.

```prolog
http_read_data(Request, Data, []),

```

```prolog
Data = [param1=value1,param2=value2]

```

how to use it ? how to get the value param1 ?

---

<div class="post-metadata">

**Author:** ![jamesnvc](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jamesnvc/32/14_2.png) [@jamesnvc](https://swi-prolog.discourse.group/u/jamesnvc)\
**Post date:** [February 17, 2023, 4:19pm UTC](https://swi-prolog.discourse.group/t/http-read-data/6263/2 "2023-02-17T16:19:58Z")

</div>

`Data` there is a list of compounds in the form `key=value`, so to get a particular value out, I generally use memberkchk/2. For example, `memberchk(param1=Param1Val, Data)`.
