Web scraping/OCaml: Difference between revisions
Content added Content deleted
(implementation for making http requests in OCaml) |
No edit summary |
||
Line 13: | Line 13: | ||
let serialize ~post_data = |
let serialize ~post_data = |
||
String.concat "&" |
|||
let rec aux acc = function |
|||
⚫ | |||
| [] -> acc |
|||
⚫ | |||
| (key,var)::tail -> aux (acc ^ key^"="^var^"&") tail |
|||
in |
|||
aux "" post_data |
|||
;; |
;; |
||