I am trying to obtain a Trac report via wget. In fact, it is a sort of release notes. I want to add it to a software packager. The URL is
http://www.opq.se/rsoft/report/17 If I type this into a browser, I get a report as expected. The entire Trac requires a password. If I use this command: wget --http-user=me --http-password=secret \ http://www.opq.se/rsoft/report/17/ I get the html for http://www.opq.se/rsoft, which is the start of the Trac. This is because, when Trac asks for a password, it always takes you to the first page, not the sub-page you requested. (Using Apache .htaccess authorization here.) So, I then thought I would try this: wget --http-user=me --http-password=secret \ http://www.opq.se/rsoft/ http://www.opq.se/rsoft/report/17/ The first URL gets the login out of the way, and the second is what I am really after. This makes great progress. Except, no matter what I try, I get both listings, not just the report listing. This is a problem because Trac rewrites the URL for the report to be the whole query, which is a long string. wget complains that the file name from this URL is too long. So, I tried the wget -O option to allow me to specify an alternate name. The problem is that the content of both URLs is all in this file. Not just the report URL. Am I missing the obvious? My goal is to obtain a report, It can be HTML, PDF, or whatever. Currently, and as an aside, the best result I get in terms of quality is to do the report in Firefox, and then print the result to a .pdf file (all running on Linux). -- Roger Oberholtzer --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
