[REBOL] Re: Calling REST Server Problem
From: compkarori:gm:ail at: 21-Sep-2010 23:05
http://rebol.wik.is/Protocols/Http
<http://rebol.wik.is/Protocols/Http>or,
read url [ header [ content-type: application/json ]]
On Tue, Sep 21, 2010 at 10:54 PM, Thorsten Moeller <tmoeller-fastmail.fm>wrote:
> Hi,
>
> i try to call a REST Server running on localhost, port 9999. Doing this
> with the browser works perfectly, doing this with rebol always results
> in error 403 forbidden.
>
> I know that there is no authentication needed for acessing the REST
> server. What i know is, that the server only accepts 'application/json'
> calls. I guess that is the real problem.
>
> How can i modify my http GET call to adress this problem? With curl the
> request should look like this :
>
> curl -H Accept:application/json http://localhost:9999/
>
> Can anybody help?
>
> Thorsten
>
> --
> http://www.fastmail.fm - Does exactly what it says on the tin
>
> --
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
>
--
Graham Chiu
http://www.compkarori.co.nz:8090/
Synapse - the use from anywhere EMR.