URLconnection, Dropbox.com, and iOS

In my iOS app, I’d like to allow the user to download a file from dropbox.com (or box.com, etc. – all these services work in a similar manner). Unfortunately, the shared link that dropbox.com provides is not to the file to download itself. Instead, one has to navigate to the dropbox site and press the direct download button. The URL for the direct download appears to change each time so cannot be hardcoded into the app.

What I would like to do is capture the download from a screen with an HTMLviewer control. When the user taps the download link on the screen in the Dropbox site, I’d like for the app to capture the download and send it directly to specialFolder.documents.child(name_of_file) so my app can access the file. It seems like I should be able to do this with URLconnection, but only if I can capture the direct, one time download link when the user taps download in the dropbox site.

Is this possible without know a lot of javascript (which I don’t)? Is there an easier way to do this? A more complicated way is to send them to Mobile Safari to do the download and then they can use the sharing panel to send it to the app with an app.handleURL event…