Re: [AOLSERVER] Bug in tclhttp.c

2003-03-28 Thread Alfred Werner
Has anyone on the aolserver core team taken a look at libcurl?
http://curl.haxx.se

They claim to be thread safe...

There is a TCL wrapper at
http://personal1.iddeo.es/andresgarci/tclcurl/english/

Doubtless this is old news to many, but it seems like it has so much to
offer :)

 The TCL native and Aolserver HTTP implementations just seem
to be far behind what this has and all my PHP buddies get to use it as a
builtin :-) 

Alfred

On Fri, 28 Mar 2003, Alexander Leyke wrote:

> Hello,
>
> Tcl command "ns_http queue $method $url" causes access violation in
> Aolserver 4.0 beta 4  - note missing headers parameter in the command.
> The access violation is due to variable hdrs left uninitialized in the
> following block of code
>
> line 126:
> case HQueueIdx:
> if (objc < 4 || objc > 6) {
> Tcl_WrongNumArgs(interp, 2, objv, "method url ?body?
> ?headers?");
> return TCL_ERROR;
> }
>
> method = Tcl_GetString(objv[2]);
> url= Tcl_GetString(objv[3]);
>
> if (objc > 4) {
> body = Tcl_GetString(objv[4]);
>
> if (objc > 5) {
> if (Ns_TclGetSet2(interp, Tcl_GetString(objv[5]), &hdrs)
> != TCL_OK) {
> return TCL_ERROR;
> }
> }
> else {
> hdrs = NULL;
> }
> }
> else {
> body = NULL;
> }
>
> Last else block needs "hdrs=NULL;" statement.
>
>
> --
> AOLserver - http://www.aolserver.com/
> To Remove yourself from this list: http://www.aolserver.com/listserv.html
> List information and options: http://listserv.aol.com/
>


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] Bug in tclhttp.c

2003-03-28 Thread Peter M. Jansson
Hey Alfred,

How about using the Tcl wrapper and writing an AOLserver module to add curl
support?  I'm sure the core team would love a patch.  You could verify the
thread-safety claims.  I'm sure the community would appreciate your work.

Pete.

> Has anyone on the aolserver core team taken a look at libcurl?
> http://curl.haxx.se
>
> They claim to be thread safe...
>
> There is a TCL wrapper at
> http://personal1.iddeo.es/andresgarci/tclcurl/english/
>
> Doubtless this is old news to many, but it seems like it has so much to
> offer :)
>
>  The TCL native and Aolserver HTTP implementations just seem
> to be far behind what this has and all my PHP buddies get to use it as a
> builtin :-) 


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] Bug in tclhttp.c

2003-03-28 Thread Alfred Werner
I'm close .. I'll need it for a project right after the one I'm finishing
up :) Any pointer to a good doc to show me what layer of interface you're
talking about or a module that is similar/at the same layer? I take it the
TCLcurl is a hand-rolled SWIG-ish kind of interface to the underlying C
libs. The API looks like it covers basically all the underlying calls.

Alfred


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] Bug in tclhttp.c

2003-03-28 Thread Tom Jackson
Alfred Werner wrote:

They claim to be thread safe...

There is a TCL wrapper at
http://personal1.iddeo.es/andresgarci/tclcurl/english

What more do you need to do? If this a package, just load into
AOLserver4.0 and be done with it. If it isn't, look at it to see how to
make it into a tcl package.
--Tom Jackson

--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


[AOLSERVER] TCLcurl .. WAS Re: [AOLSERVER] Bug in tclhttp.c

2003-03-28 Thread Alfred Werner
Roger dodger ... I'm just in the light research phase thinking about what
I'll need for an upcoming project - doesn't seem like a big deal - it
never is :) When I get to that point (or if I have some free time this
weekend) I'll post here about how nicely it plays with aolserver.

On Fri, 28 Mar 2003, Tom Jackson wrote:

> Alfred Werner wrote:
>
> >They claim to be thread safe...
> >
> >There is a TCL wrapper at
> >http://personal1.iddeo.es/andresgarci/tclcurl/english
> >
> >
>
> What more do you need to do? If this a package, just load into
> AOLserver4.0 and be done with it. If it isn't, look at it to see how to
> make it into a tcl package.
>
> --Tom Jackson
>
>
> --
> AOLserver - http://www.aolserver.com/
> To Remove yourself from this list: http://www.aolserver.com/listserv.html
> List information and options: http://listserv.aol.com/
>


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/


Re: [AOLSERVER] TCLcurl .. WAS Re: [AOLSERVER] Bug in tclhttp.c

2003-03-28 Thread Tom Jackson
Alfred,
I hope you find it easy. cURL sounds like a nice package, even nicer
that someone has created a tcl wrapper. I doubt that we will use it to
replace the http server processing in AOLserver, but as a client package
(making aolserver the client) it should be very helpful.
--Tom Jackson

Alfred Werner wrote:

Roger dodger ... I'm just in the light research phase thinking about what
I'll need for an upcoming project - doesn't seem like a big deal - it
never is :) When I get to that point (or if I have some free time this
weekend) I'll post here about how nicely it plays with aolserver.



--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/