Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Interchange: users

json content-type Unsupported

 

 

Interchange users RSS feed   Index | Next | Previous | View Threaded


mat at bibliopolis

Oct 21, 2009, 2:34 PM

Post #1 of 5 (978 views)
Permalink
json content-type Unsupported

Hi,

I am serving some json content from within interchange, and was receiving a "415 Unsupported
Content-Type for POST method" error message when calling the file using XMLHttpRequest. I tracked it
down to Server.pm which was checking valid content type. It seems only to be allowing the following:

"multipart/form-data|application/x-www-form-urlencoded|application/xml" (line 254, in 5.6.2)

Is there a reason that content type 'application/json' was not chosen to be in the list?

Regards,

Mat

_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


carl at endpoint

Oct 21, 2009, 2:46 PM

Post #2 of 5 (926 views)
Permalink
Re: json content-type Unsupported [In reply to]

On Oct 21, 2009, at 5:34 PM, Mathew Jones wrote:

> Hi,
>
> I am serving some json content from within interchange, and was
> receiving a "415 Unsupported
> Content-Type for POST method" error message when calling the file
> using XMLHttpRequest. I tracked it
> down to Server.pm which was checking valid content type. It seems
> only to be allowing the following:
>
> "multipart/form-data|application/x-www-form-urlencoded|application/
> xml" (line 254, in 5.6.2)
>
> Is there a reason that content type 'application/json' was not
> chosen to be in the list?
>
> Regards,
>
> Mat


Seems like a great thing to abstract from being hard-coded, and
introduce a setting in interchange.cfg perhaps.

Carl
. . . . . . . . . . . . . . . . . . .
Carl Bailey
t: 919-323-8025
carl [at] endpoint
. . . . . . . . . . . . . . . . . . .


_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


gert at 3edge

Oct 22, 2009, 12:13 AM

Post #3 of 5 (930 views)
Permalink
Re: json content-type Unsupported [In reply to]

> -----Original Message-----
> From: interchange-users-bounces [at] icdevgroup [mailto:interchange-
> users-bounces [at] icdevgroup] On Behalf Of Mathew Jones
> Sent: Thursday, October 22, 2009 12:34 AM
> To: interchange-users [at] icdevgroup
> Subject: [ic] json content-type Unsupported
>
> Hi,
>
> I am serving some json content from within interchange, and was
> receiving a "415 Unsupported
> Content-Type for POST method" error message when calling the file using
> XMLHttpRequest. I tracked it
> down to Server.pm which was checking valid content type. It seems only
> to be allowing the following:
>
> "multipart/form-data|application/x-www-form-urlencoded|application/xml"
> (line 254, in 5.6.2)
>
> Is there a reason that content type 'application/json' was not chosen
> to be in the list?

Age(json) < Age(interchange) ? :)


_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


jon at endpoint

Oct 22, 2009, 11:38 AM

Post #4 of 5 (918 views)
Permalink
Re: json content-type Unsupported [In reply to]

On Wed, 21 Oct 2009, Carl Bailey wrote:

>> Is there a reason that content type 'application/json' was not chosen
>> to be in the list?
>
> Seems like a great thing to abstract from being hard-coded, and
> introduce a setting in interchange.cfg perhaps.

I think you're right, Carl, but I'll let someone who has the need submit a
patch for that.

For now I committed a change to allow POST with application/json.

Jon

--
Jon Jensen
End Point Corporation
http://www.endpoint.com/

_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


racke at linuxia

Oct 23, 2009, 6:16 AM

Post #5 of 5 (909 views)
Permalink
Re: json content-type Unsupported [In reply to]

Jon Jensen wrote:
> On Wed, 21 Oct 2009, Carl Bailey wrote:
>
>>> Is there a reason that content type 'application/json' was not chosen
>>> to be in the list?
>> Seems like a great thing to abstract from being hard-coded, and
>> introduce a setting in interchange.cfg perhaps.
>
> I think you're right, Carl, but I'll let someone who has the need submit a
> patch for that.
>

OK, I opened a ticket to keep that in mind:

http://rt.icdevgroup.org/Ticket/Display.html?id=324

Regards
Racke



--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team


_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users

Interchange users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.