Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - svenn

Pages: [1]
1
cabeza, with your hints I managed to find a solution:

First get a cookie from the login and save to a file, in my case I call the file feng
Code: [Select]
wget -O - --save-cookies feng --post-data "login[username]=myname&login[password]=mypass" "http://server/feng/index.php?c=access&a=login" > /dev/null

Then I download the file using that cookie
Code: [Select]
wget -O test.html --load-cookies feng  "http://server/feng/index.php?c=files&a=download_file&id=18"

Since the username and password is clear text on the command line, I have to wrap it in a script in my multi-user environment, but that is a different story.

Thanks,
Svenn

2
Hi,
In a tool flow, I use Feng Office to write documentation and then download the html file and pass it through a script to extract commands to development tools. I am playing with wget  to do the download automatically from a Makefile before running the rest of the development tools.

In the revision list of the specification html document in FO I copy and paste the link from the download button of the document version I would like to download to wget on the command line:
wget -O "http://server/fengindex.php?c=files&a=download_revision&id=83" I also tried
wget -O "http://user:pass@server/fengindex.php?c=files&a=download_revision&id=83" but the html I download is only the code for the login screen.

Any idea what I do wrong?

Svenn

Pages: [1]