+ Reply to Thread
Results 1 to 6 of 6

Thread: How to get full URL with options?

  1. #1

    How to get full URL with options?

    For instance, http://www.nvidia.com/Download/index.aspx , which lets you select your options and press Search. I would like to get the full URL that fills in those options automatically and sends me directly to download. Is there some easy way to do this?

    Thank you!
    Last edited by Master Razor; 03.05.17 at 18:10.
    Reply With QuoteReply With Quote
    Thanks

  2. #2
    A grease monkey script ? Maybe :)
    Reply With QuoteReply With Quote
    Thanks

  3. #3
    No, Lucius. I mean after I complete all fields and click search, I'd like to copy the exact URL that sends me to the next page.
    Reply With QuoteReply With Quote
    Thanks

  4. #4
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,410
    Activity Longevity
    6/20 19/20
    Today Posts
    0/5 ssss39410
    Sometimes you can do this by changing the form method from POST to GET, but not here. JavaScript functions GetDriver() and getDriverURL() are in charge of parsing the form input and redirecting you to the driver download. An XMLHttpRequest to processDriver.aspx is made, and it returns which URL you should be taken to.

    The good news is that you can just sniff that request, and then reuse it for as long as your required hardware, OS and language are the same. A little scripting could parse the output and open your browser or create a bookmark that automatically redirects.

    Code:
    @echo off
    rem GeForce 6 Series / Windows XP / US English
    for /f "usebackq" %%x in (`wget "http://www.nvidia.com/Download/processDriver.aspx?psid=3&pfid=31&rpf=1&osid=6&lid=1&lang=en-us&ctk=0" ^
    -U "" --header="X-Requested-With: XMLHttpRequest" --referer="http://www.nvidia.com/Download/index.aspx" ^
    --header="Cache-Control: no-cache, no-store, max-age=0" --header="Pragma: no-cache" --header="Connection: close" -q -O -`) do set url=%%x
    echo %url% | findstr "driverResults.aspx/" > nul
    if "%errorlevel%"=="0" (
    	start "" "C:\path\to\browser\firefox.exe" %url%
    	goto end
    ) else (
    	echo Error obtaining download address.
    )
    :end
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  5. Who Said Thanks:

    Lucius (04.05.17)

  6. #5
    OK.. but how do i sniff the request?
    For instance, how do I create this? 0
    Last edited by Master Razor; 04.05.17 at 18:57.
    Reply With QuoteReply With Quote
    Thanks

  7. #6
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,410
    Activity Longevity
    6/20 19/20
    Today Posts
    0/5 ssss39410
    Well, I used SmartSniff because I already had it installed and it was faster for me, but there's also the developer console present in all major browsers.
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  8. Who Said Thanks:

    Master Razor (06.05.17)

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •