Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Calling REST Server Problem

From: tmoeller:fastmail:fm at: 22-Sep-2010 8:23

Hello Graham, just another question. Is it possible to make a POST or a DELETE this way?? Perhaps you can provide a small example?? I am sorry if this is an really easy thing, but i am not too familiar with http protocol and webprogramming. Regards, Thorsten On Tue, 21 Sep 2010 23:05 +1200, "Graham Chiu" <compkarori-gmail.com> wrote:
> 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. > > -- > To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject. >
-- http://www.fastmail.fm - A no graphics, no pop-ups email service