Hi Diego,

you can specify an URL as the argument to the constructor of the "Open.file"
class. That will result in a GET request.
See
http://www.mozart-oz.org/documentation/system/node55.html#section.file.obj

If you need more functionality, you may use a third party library like the
HttpClient package: http://www.mozart-oz.org/mogul/doc/mesaros/httpclient/

Here are examples for both cases: http://rosettacode.org/wiki/HTTP#Oz

There is also a HTTP client available as part of the Mathweb HTTP server:
http://www.mozart-oz.org/mogul/doc/mathweb/httpd/index.html
But I have never used that package.

Hope this helps,
  Wolfgang


On Sat, Mar 12, 2011 at 7:43 PM, Diego Guevara
<[email protected]>wrote:

> Greetings,
>
> I have to say that I can't speak english very well, so I hope you can
> understand my question. Well, here I come: is it possible to send requests
> to a server via HTTP protocol (both GET and POST methods) using any OZ
> module? I just need to be able to put an URL, add parameters and get the
> URL's response, i. e. if the URL is a web page, I need to get the string
> which builds that page.
>
> If it's not possible, is there an alternative way to do this?
>
> I'll really appreciate your help.
>
>
>
>
> *Diego Fernando Guevara*
>
> _________________________________________________________________________________
> mozart-users mailing list
> [email protected]
> http://www.mozart-oz.org/mailman/listinfo/mozart-users
>
_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to