PDA

View Full Version : ddidownloader connection method


Kazbaeden
June 17th, 2010, 08:50 AM
I'm looking over the source for ddidownloader, and I'm having trouble understanding what the requirements are to log in and view a compendium entry.

I'm sending an http request to url http://wizards.com/global/dnd_login.asp, with my e-mail and password as POST data. I'm getting back the following:

Response object error 'ASP 0158 : 80004005'

Missing URL

/global/dnd_login.asp, line 78

A URL is required.

I'm guessing I need to tell it where to go after the login, but how? Is this also post data? I'd like to direct it to a compendium entry like "http://www.wizards.com/dndinsider/compendium/login.aspx?page=item&id=2845"

Thanks for any help.

Colen
June 17th, 2010, 12:05 PM
I *think* that's normal when you log in. Logging in like that sets up the "cookie" (or whatever way they use to store the fact that you're authenticated) appropriately, so the compendium stops sending back "subscription required" pages to you.

After logging in, you would then make a separate request to (using your example) http://www.wizards.com/dndinsider/compendium/login.aspx?page=item&id=2845 to download the page.

Does that help?

Kazbaeden
June 17th, 2010, 05:14 PM
Thanks, that was just what I needed to know.