Jeroen van Veen wrote:
> if other python libs can be imported, maybe it can be done with pycurl?
>   

basics are also in the stdlib, http://docs.python.org/library/urllib.html

filehandle = urllib.urlopen(some_url, proxies=proxies)

i guess the way to use curl within .net (which the server, being 
opensim, is) would be via some .net wrapper, dunno, if you needed that 
for some reason.

and like said in the other post, it may be also a good idea to do what 
opensim does on the c# side, what you would do in an opensim region 
module perhaps (of course rexscript can also expose it by wrapping 
something itself, or using what is exposed for LSL (which are what 
rexscript usually uses)).

> Jeroen
>   

~Toni

> On Wednesday 08 April 2009 18:55:13 Jani Pirkola wrote:
>   
>> Toni,
>> isn't it possible to send http get requests from python directly? Or at
>> least open tcp socket and write the get request there? What do I need to do
>> to enable needed libraries, ie does python in rex work as it was any python
>> environment?
>>
>> Jani
>>
>> 2009/4/8 Toni Alatalo <[email protected]>
>>
>>     
>>> zeshu wrote:
>>>       
>>>> I have some data on a php web page.Now i need that data in realXtend.i
>>>> checked two methods in LSL one is httprequest and XML-RPC.How i can
>>>> use these functions in Python.
>>>>         
>>> are they exposed in the rexscript system? basically it always calls the
>>> opensim scripting api,
>>> i.e. is same as the lsl impls.
>>>
>>> i think you can also use any .net library that your system has installed
>>> on your server,
>>> similarily to how use in it c# but just within ironpython (which
>>> rexscript uses).
>>>
>>> ~Toni
>>>       
>>     
>
> >   


--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/realxtend
http://www.realxtend.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to