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

Mailing List Archive: Cherokee: users

HTTP_PUT / HTTP_POST in a handler

 

 

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


skinkie at xs4all

Jun 1, 2008, 4:45 AM

Post #1 of 5 (321 views)
Permalink
HTTP_PUT / HTTP_POST in a handler

Hi,

How can I process a http_put/post request (the payload) in a handler. Or
better: where can I access it?


Stefan

_______________________________________________
Cherokee mailing list
Cherokee[at]cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee


alvaro at gnu

Jun 1, 2008, 5:43 AM

Post #2 of 5 (320 views)
Permalink
Re: HTTP_PUT / HTTP_POST in a handler [In reply to]

On 1 Jun 2008, at 13:45, Stefan de Konink wrote:

> How can I process a http_put/post request (the payload) in a
> handler. Or
> better: where can I access it?

&HANDLER_CONN(handler)->post is the object containing the post
information. Its interface is defined in cherokee/post.h.

--
Greetings, alo.
http://www.alobbs.com/

_______________________________________________
Cherokee mailing list
Cherokee[at]cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee


skinkie at xs4all

Jun 1, 2008, 5:45 AM

Post #3 of 5 (321 views)
Permalink
Re: HTTP_PUT / HTTP_POST in a handler [In reply to]

Alvaro Lopez Ortega schreef:
> On 1 Jun 2008, at 13:45, Stefan de Konink wrote:
>
>> How can I process a http_put/post request (the payload) in a handler. Or
>> better: where can I access it?
>
> &HANDLER_CONN(handler)->post is the object containing the post
> information. Its interface is defined in cherokee/post.h.

So a put request will have its data there too?

Stefan
_______________________________________________
Cherokee mailing list
Cherokee[at]cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee


alvaro at gnu

Jun 1, 2008, 6:05 AM

Post #4 of 5 (318 views)
Permalink
Re: HTTP_PUT / HTTP_POST in a handler [In reply to]

On 1 Jun 2008, at 14:45, Stefan de Konink wrote:
> Alvaro Lopez Ortega schreef:
>> On 1 Jun 2008, at 13:45, Stefan de Konink wrote:
>>> How can I process a http_put/post request (the payload) in a
>>> handler. Or
>>> better: where can I access it?
>> &HANDLER_CONN(handler)->post is the object containing the post
>> information. Its interface is defined in cherokee/post.h.
>
> So a put request will have its data there too?


Even if the server core is ready for the less common HTTP methods,
none of the handlers that we are currently shipping support methods
besides GET, POST and HEAD. Actually, I could not assure whether it
will work.

Give it a try. If for any reason it does not work, let me know and I
will check it out.

--
Greetings, alo.
http://www.alobbs.com/

_______________________________________________
Cherokee mailing list
Cherokee[at]cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee


skinkie at xs4all

Jun 1, 2008, 8:35 AM

Post #5 of 5 (311 views)
Permalink
Re: HTTP_PUT / HTTP_POST in a handler [In reply to]

Alvaro Lopez Ortega schreef:
> On 1 Jun 2008, at 14:45, Stefan de Konink wrote:
>> Alvaro Lopez Ortega schreef:
>>> On 1 Jun 2008, at 13:45, Stefan de Konink wrote:
>>>> How can I process a http_put/post request (the payload) in a
>>>> handler. Or
>>>> better: where can I access it?
>>> &HANDLER_CONN(handler)->post is the object containing the post
>>> information. Its interface is defined in cherokee/post.h.
>>
>> So a put request will have its data there too?
>
>
> Even if the server core is ready for the less common HTTP methods, none
> of the handlers that we are currently shipping support methods besides
> GET, POST and HEAD. Actually, I could not assure whether it will work.
>
> Give it a try. If for any reason it does not work, let me know and I
> will check it out.

I guess you forgot a type in http_method_with_input ;)

(m == http_put) || \


Add this to http.h :) I see now the post has a length.


Stefan
_______________________________________________
Cherokee mailing list
Cherokee[at]cherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee

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


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.