# Getting header from web api post response

**URL:** <https://community.thunkable.com/t/getting-header-from-web-api-post-response/2493814>\
**Category:** Web API's\
**Created:** [July 4, 2023, 4:03pm UTC](https://community.thunkable.com/t/getting-header-from-web-api-post-response/2493814 "2023-07-04T16:03:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hauleslie3tf](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@hauleslie3tf](https://community.thunkable.com/u/hauleslie3tf)\
**Post date:** [July 4, 2023, 4:03pm UTC](https://community.thunkable.com/t/getting-header-from-web-api-post-response/2493814/1 "2023-07-04T16:03:44Z")

</div>

Hello everyone,

I’m currently working on a project where I need to interact with the Azure API, which necessitates both POST and GET requests.

As part of this process, I’m using the Thunkable’s Web API block to send a POST request and attempting to retrieve the ‘Operation-Location’ header from the response (response.headers[“Operation-Location”]).

However, it appears that I’m only receiving the status ‘202’ and a ‘null’ response. From what I understand, Thunkable’s Web API block allows for access to the body of the response (which contains the actual data returned by the server), but not the headers, which is what I’m particularly interested in.

Attached is a screenshot of my current block setup for reference. I would appreciate any insights or guidance on how I could access the response headers in Thunkable. Thank you in advance for your assistance.

Thanks!

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/b/0b50a9ac8f6286afc4103254bc4e107394b270f1.png)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [July 5, 2023, 6:17pm UTC](https://community.thunkable.com/t/getting-header-from-web-api-post-response/2493814/2 "2023-07-05T18:17:01Z")

</div>

Hello @hauleslie3tf  
A solution will be to use a Web Viewer component and an HTL file instead of the Web API component.  
You can find an example shared here: [Getting a header from post response? - #7 by mcdonaldzacharyaj3o6](https://community.thunkable.com/t/getting-a-header-from-post-response/2450055/7)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:33pm UTC](https://community.thunkable.com/t/getting-header-from-web-api-post-response/2493814/3 "2024-11-08T13:33:42Z")

</div>


