URL Parameter "accept" not working?


#1

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:
http://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.


#2

@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.


Can a session token be generated in pure HTTP?
#3

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


#5

@Reto I submitted this change into the develop branch of the dreamfactory/df-core repo here. Check it out and use it locally if you wish until the next release, probably end of January.


#6

Still I facing similar issue.(i:e)

My request is:
http://hostname/api/v2/df_reply_comment?&comment=“test%20uservalue”

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