# Automating download of a fetch api in a website

**URL:** https://discourse.julialang.org/t/automating-download-of-a-fetch-api-in-a-website/86380
**Category:** General Usage
**Tags:** web, website, api, download
**Created:** [August 26, 2022, 1:11pm UTC](https://discourse.julialang.org/t/automating-download-of-a-fetch-api-in-a-website/86380 "2022-08-26T13:11:29Z")
**Posts on this page:** 2
**Page:** 2

<div class="post-metadata">

### Author: ![Jeff\_Emanuel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeff_emanuel/32/15440_2.png) [@Jeff\_Emanuel](https://discourse.julialang.org/u/Jeff_Emanuel)
#### Post date: [August 26, 2022, 5:24pm UTC](https://discourse.julialang.org/t/automating-download-of-a-fetch-api-in-a-website/86380/21 "2022-08-26T17:24:32Z")

</div>

At [API Reference · HTTP.jl](https://juliaweb.github.io/HTTP.jl/stable/reference/#Client-Requests), it says that a `Dict` for a body gets

> serialized as the “application/x-www-form-urlencoded” content type

You want your body serialized as XML. There are a couple of Julia XML packages you can find, or format it yourself.

---

<div class="post-metadata">

### Author: ![tom-plaa](https://avatars.discourse-cdn.com/v4/letter/t/d26b3c/32.png) [@tom-plaa](https://discourse.julialang.org/u/tom-plaa)
#### Post date: [August 29, 2022, 1:16pm UTC](https://discourse.julialang.org/t/automating-download-of-a-fetch-api-in-a-website/86380/22 "2022-08-29T13:16:55Z")

</div>

Thanks Jeff. I have managed to make it work with simple parsing of strings, but I’ll try to get it working the proper way as well.

[Previous page](https://discourse.julialang.org/t/automating-download-of-a-fetch-api-in-a-website/86380.md?page=1)
