Question: For example, I want to download this page after inserting username and password:

```
http://forum.ubuntu-it.org/

```

I have tryed with wget but doesn't work.

Is there a solution with python ?

You can test with these username and password:

```
username: johnconnor
password: hellohello

```

Answer: 
You can use the [urllib2](http://docs.python.org/library/urllib2.html) module and with that it is possible do to basic and form based authentication (with cookies support).

Here is a nice [tutorial](http://personalpages.tds.net/~kent37/kk/00010.html) on your issue.
Try the [mechanize](http://wwwsearch.sourceforge.net/mechanize/) module. It's basically a programmatic browser interface.