bash authenticate on a server

Hi

I'd like to use a script bash that every morning automatically get from a server the file i need.
The problem is that i should myself authenticate on a server, i mean i have to insert username and passwd.

Do you know any reference or guide where i can read about?

Thanks

D.

How do you get that file? FTP, SCP, SFTP, CIFS, NFS, ...?

Hi

I connect to the server (HTTP) via browser and after login i download the file.

Thanks for reply

D.

Could you please provide some more information? Because it's unlikely that anyone here has exactly the same system as yours. So:

  • How do you authenticate? HTTP Authentication? Cookies? Something else?
  • How you you locate the file you want? Does it have a static or dynamic URL? Is the filename encoded somewhere in the URL?
  • Is the website pure HTML, or are there nasties like ActiveX, Flash, AJAX, ...

The more information you can provide, the more likely it is that someone here can help you.

hi sorry, the web server is not mine, i just joined it. Everyday i take the newspaper of the day.

what i can see is that the web site is not pure html but i can see aspx extension, i just go there via http then I login with username and passwd and when i'm inside i can see the newspaper and download it. There are no cookies.
The url seems like be always the same.

hope are the right info you mean

thanks for help

D.