Hi Aldo,

The internal WS stream produced by vsp if not flushed nor chunked, the output 
can be read with http_get_string_output (in str_ses any) where str_ses is a 
variable initialized with string_output () . If this parameter is not given 
then up to 10MB chars can be returned as varchar. Note this can be done in the 
post processing http hook set-up of the virtual directory at any other point 
e.g. inside vsp it can be a part of the product of vsp execution, so you should 
be careful with it's use.

Best Regards
Hugh Williams
Professional Services
OpenLink Software
Web: http://www.openlinksw.com
Support: http://support.openlinksw.com
Forums: http://boards.openlinksw.com/support
Twitter: http://twitter.com/OpenLink

On 15 Sep 2010, at 16:35, Aldo Bucchi wrote:

> Hi,
> 
> I am trying to capture the HTTP stream contents after executing a VSP
> ( by calling the corresponding WS.WS.*.vsp procedure ).
> Is there any way to do this? Or, more generally, capture the data that
> will be sent to the HTTP?
> 
> One of the usecases is to enable a custom Caching solution within Virtuoso.
> 
>> From the manual:
> 
> http://docs.openlinksw.com/virtuoso/fn_http_rewrite.html
> "All output from VSP page procedures is buffered into a local string
> stream before being sent out. This is done so as to support the
> HTTP/1.1 required content length and to allow recovery from errors."
> 
> Can I access that local stream somehow?
> 
> Regards,
> A
> 
> -- 
> Aldo Bucchi
> @aldonline
> skype:aldo.bucchi
> http://aldobucchi.com/
> 
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Virtuoso-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Reply via email to