[Kamailio-Devel] new http_query function

Henning Westerholt henning.westerholt at 1und1.de
Tue Nov 11 10:34:45 CET 2008


On Monday 10 November 2008, Klaus Darilion wrote:
> > i wrote a function
> >
> > http_query(page, params)
> >
> > that sends http get to given page with given params and gets as body of
> > reply an uri if result code is 2xx or 3xx.  it then uses this uri to
> > replace current request uri.  in practise http_query thus allows a web
> > server to rewrite request uri based on given parameters.
>
> Are the params sent as GET or POST?
>
> What about making it more generic? Send a request, get a result. Then in
>   script you can decide if the result will be used e.g. as RURI or RPID
> or ...
>
> What about renaming cfgutils to utils and adding it there?
>
> Is libcurl reentrant? It will be also loaded (initialized ...) by
> xcap_client.

Hi Juha, Klaus,

we could place it in the cfgutils module. Another option would be to create a 
new module, why not called utils, and place this here with some other 
functions. I already thought about moving the options, maxforward functions 
to one place like this.

Cheers,

Henning



More information about the Devel mailing list