# Header in http.get() in ionic 3

**URL:** <https://forum.ionicframework.com/t/header-in-http-get-in-ionic-3/91292>\
**Category:** ionic-v3\
**Created:** [May 22, 2017, 2:32pm UTC](https://forum.ionicframework.com/t/header-in-http-get-in-ionic-3/91292 "2017-05-22T14:32:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alibahjat](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@alibahjat](https://forum.ionicframework.com/u/alibahjat)\
**Post date:** [May 22, 2017, 2:32pm UTC](https://forum.ionicframework.com/t/header-in-http-get-in-ionic-3/91292/1 "2017-05-22T14:32:42Z")

</div>

hello  
i want to put header in get request in http  
how i can do this in ionic 3

---

<div class="post-metadata">

**Author:** ![luukschoen](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/luukschoen/32/98585_2.png) [@luukschoen](https://forum.ionicframework.com/u/luukschoen)\
**Post date:** [May 22, 2017, 2:57pm UTC](https://forum.ionicframework.com/t/header-in-http-get-in-ionic-3/91292/2 "2017-05-22T14:57:41Z")

</div>

By reading the Angular documentation over here:

[https://angular.io/docs/ts/latest/guide/server-communication.html](https://angular.io/docs/ts/latest/guide/server-communication.html)

quick excerpt:

```auto
import { Headers, RequestOptions } from '@angular/http';

  create(name: string): Observable<Hero> {
    let headers = new Headers({ 'Content-Type': 'application/json' });
    let options = new RequestOptions({ headers: headers });

    return this.http.post(this.heroesUrl, { name }, options)
                    .map(this.extractData)
                    .catch(this.handleError);
  }

```

---

<div class="post-metadata">

**Author:** ![alibahjat](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@alibahjat](https://forum.ionicframework.com/u/alibahjat)\
**Post date:** [May 22, 2017, 3:53pm UTC](https://forum.ionicframework.com/t/header-in-http-get-in-ionic-3/91292/3 "2017-05-22T15:53:06Z")

</div>

thanks you  
but  
{ name }  
stand for what

---

<div class="post-metadata">

**Author:** ![luukschoen](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/luukschoen/32/98585_2.png) [@luukschoen](https://forum.ionicframework.com/u/luukschoen)\
**Post date:** [May 22, 2017, 7:33pm UTC](https://forum.ionicframework.com/t/header-in-http-get-in-ionic-3/91292/4 "2017-05-22T19:33:00Z")

</div>

It’s a post, so name is the payload. But if you wouldn’t be that lazy and opened up the docs, you would have probably seen that 😉 If you do a get request, a payload isn’t necessary. Just pass in the options.
