POST with custom content type

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

POST with custom content type

Ralf Jung
Hi list,

the BaseX [1] REST interface requires me to send POST requests with a content-
type of "application/query+xml". Is it possible to send such requests with
Orbeon? As far as I know, the only way to send POST requests is to use an
XForms submission, which seems to force the content-type to "application/xml"
- at least, if I change the serialize attribute to the other content type, no
serialization is performed at all.

Kind regards,
Ralf

[1] http://basex.org/


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: POST with custom content type

Ralf Jung
Hi again,

I wrote a patch which allows me to send the requests I need - however, I am
not sure if this is really the desired way to do that.
You can find it attached.

Kind regards,
Ralf

On Wednesday 21 September 2011 18:58:59 Ralf Jung wrote:

> Hi list,
>
> the BaseX [1] REST interface requires me to send POST requests with a
> content- type of "application/query+xml". Is it possible to send such
> requests with Orbeon? As far as I know, the only way to send POST requests
> is to use an XForms submission, which seems to force the content-type to
> "application/xml" - at least, if I change the serialize attribute to the
> other content type, no serialization is performed at all.
>
> Kind regards,
> Ralf
>
> [1] http://basex.org/


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

0001-allow-serialization-application-query-xml-in-xforms-.patch (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Re: POST with custom content type

Ralf Jung
Hi list,

the issue was in the mean time solved on the other side - BaseX no longer
requires a custom content-type for POSTed queries.

Kind regards,
Ralf

On Wednesday 21 September 2011 20:03:01 Ralf Jung wrote:

> Hi again,
>
> I wrote a patch which allows me to send the requests I need - however, I am
> not sure if this is really the desired way to do that.
> You can find it attached.
>
> Kind regards,
> Ralf
>
> On Wednesday 21 September 2011 18:58:59 Ralf Jung wrote:
> > Hi list,
> >
> > the BaseX [1] REST interface requires me to send POST requests with a
> > content- type of "application/query+xml". Is it possible to send such
> > requests with Orbeon? As far as I know, the only way to send POST
> > requests is to use an XForms submission, which seems to force the
> > content-type to "application/xml" - at least, if I change the serialize
> > attribute to the other content type, no serialization is performed at
> > all.
> >
> > Kind regards,
> > Ralf
> >
> > [1] http://basex.org/


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws