# URL Parameter "accept" not working?

**URL:** <https://community.dreamfactory.com/t/url-parameter-accept-not-working/1954>\
**Category:** REST API\
**Created:** [December 23, 2015, 1:27pm UTC](https://community.dreamfactory.com/t/url-parameter-accept-not-working/1954 "2015-12-23T13:27:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reto](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@Reto](https://community.dreamfactory.com/u/Reto)\
**Post date:** [December 23, 2015, 1:27pm UTC](https://community.dreamfactory.com/t/url-parameter-accept-not-working/1954/1 "2015-12-23T13:27:45Z")

</div>

Hi all,

I am trying to make a API request with URL Parameters. And it works, except the accept parameter. I follow the instructions here:  
[https://wiki.dreamfactory.com/DreamFactory/API](https://wiki.dreamfactory.com/DreamFactory/API)

My request is:  
`https://[username%40domain]:[password]@[serverurl]:443/api/v2/[service]/_proc/[procname]?api_key=[apikey]&accept=application%2Fxml`

The result is always JSON. No error messages. It looks like the accept=application/xml URL parameter is ignored?

Or is something wrong with my request string?

Thx  
Reto E.

---

<div class="post-metadata">

**Author:** ![leehicks](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/leehicks/32/55_2.png) [@leehicks](https://community.dreamfactory.com/u/leehicks)\
**Post date:** [December 28, 2015, 2:37pm UTC](https://community.dreamfactory.com/t/url-parameter-accept-not-working/1954/2 "2015-12-28T14:37:11Z")

</div>

@Reto Sorry for the confusion, it looks like that wiki page was mistakenly updated by myself with stuff coming in the next release. The Accept header is currently working, but no the URL param. Stay tuned.

---

<div class="post-metadata">

**Author:** ![Reto](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@Reto](https://community.dreamfactory.com/u/Reto)\
**Post date:** [December 28, 2015, 3:24pm UTC](https://community.dreamfactory.com/t/url-parameter-accept-not-working/1954/3 "2015-12-28T15:24:56Z")

</div>

Okay.  
I guess I could also create a custom scripting service which translates the param to a header.

---

<div class="post-metadata">

**Author:** ![leehicks](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/leehicks/32/55_2.png) [@leehicks](https://community.dreamfactory.com/u/leehicks)\
**Post date:** [December 28, 2015, 6:57pm UTC](https://community.dreamfactory.com/t/url-parameter-accept-not-working/1954/5 "2015-12-28T18:57:48Z")

</div>

@Reto I submitted this change into the develop branch of the dreamfactory/df-core repo [here](https://github.com/dreamfactorysoftware/df-core/commit/7cc0f46a055f0d20993772f74bedbbc7522ed15d). Check it out and use it locally if you wish until the next release, probably end of January.

---

<div class="post-metadata">

**Author:** ![Hariharaprabu\_M](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/hariharaprabu_m/32/819_2.png) [@Hariharaprabu\_M](https://community.dreamfactory.com/u/Hariharaprabu_M)\
**Post date:** [April 25, 2016, 7:34am UTC](https://community.dreamfactory.com/t/url-parameter-accept-not-working/1954/6 "2016-04-25T07:34:48Z")

</div>

> [@leehicks](#):
>
> a

Still I facing similar issue.(i:e)

My request is:  
[http://hostname/api/v2/df\_reply\_comment?&comment=“test%20uservalue”](http://hostname/api/v2/df_reply_comment?&comment=%22test%20uservalue%22)

In comment parameter **uservalue** is ignored;  
How to fix this issue?
