On Tuesday 23 October 2007 09:07, Rick Cobb wrote:
> ns_http (http://panoptic.com/wiki/aolserver/Ns_http)
>      Supports asynchronous operation
>      Supports all methods
>      Only supports BASIC auth
>      No proxy support
>      No SSL (https) support
>      Implemented largely in C
>      Available only in AOLServer 4 and above
>      Built-in
>      Only usable from a single thread (no channel/socket passing)

This isn't quite accurate. 

What is going on in ns_http, is that a single thread does socket operations. 
When you do a ns_http queue, it places the request in a queue in this thread 
(different than a connection thread).

The [ns_http queue] returns an id used during [ns_http wait]. [ns_http wait] 
can be called in a separate thread, like a scheduled proc. So you don't have 
to pass a socket around, it always remains in the queue thread. 

Also, you can add headers in a similar way to a regular request. That is, you 
provide a ns_set with additional headers. So whatever auth methods are 
supported with headers, you can do with ns_http. 


There is also ns_httpsget/post which handles https, just like ns_httpget/post. 
The commands ns_httpopen/ns_httpsopen are use by the get/post indirectly. I 
also think these may follow redirects.

tom jackson 


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to