Downloading from a site with OS recognition - pokerstars


#1

Hey i searched the forum but couldn’t find anything relevant.

I’m trying to download Pokerstars but their website has auto-OS recognition and starts the download based on your operating system. As a company, it supports usage through WINE but the download never starts (obviously) and i can’t find a way round it. It’s just a simple exe file. Is there some way of downloading it through terminal ? I tried wget but it didn’t appear to download anything. The url is https://www.pokerstars.fr/poker/download/

wget produces the following:

wget https://www.pokerstars.fr/client/download/
–2019-01-12 10:22:59-- https://www.pokerstars.fr/client/download/
Loaded CA certificate ‘/etc/ssl/certs/ca-certificates.crt’
Resolving www.pokerstars.fr (www.pokerstars.fr)… 91.211.98.226, 77.87.180.152
Connecting to www.pokerstars.fr (www.pokerstars.fr)|91.211.98.226|:443… connected.
HTTP request sent, awaiting response… 301 Moved Permanently
Location: http://www.pokerstars.fr/client/unsupported/ [following]
URL transformed to HTTPS due to an HSTS policy
–2019-01-12 10:22:59-- https://www.pokerstars.fr/client/unsupported/
Reusing existing connection to www.pokerstars.fr:443.
HTTP request sent, awaiting response… 301 Moved Permanently
Location: http://www.pokerstars.fr/poker/download/ [following]
URL transformed to HTTPS due to an HSTS policy
–2019-01-12 10:22:59-- https://www.pokerstars.fr/poker/download/
Reusing existing connection to www.pokerstars.fr:443.
HTTP request sent, awaiting response… 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html’

index.html [ <=> ] 35,29K --.-KB/s in 0,06s

2019-01-12 10:22:59 (584 KB/s) - ‘index.html’ saved [36139]

Thanks.


#2

A link to the website wouldn’t hurt


#3

the .fr site have wrong url, try .com
https://www.pokerstars.com/poker/download/

it should be https://www.pokerstars.com/PokerStarsInstall.exe


#4

$ wget https://www.pokerstars.it/PokerStarsInstallIT.exe
–2019-01-12 11:12:08-- https://www.pokerstars.it/PokerStarsInstallIT.exe
Caricato certificato CA “/etc/ssl/certs/ca-certificates.crt”

Risoluzione di www.pokerstars.it (www.pokerstars.it)… 77.87.180.154, 91.211.98.225
Connessione a www.pokerstars.it (www.pokerstars.it)|77.87.180.154|:443… connesso.
Richiesta HTTP inviata, in attesa di risposta… 301 Moved Temporary
Posizione: https://www.pokerstars.it/cgi-bin/ams/download_NWJ0G34bLDMTEQtiCjVHTlJeLHoyMXhSBTgqJHsQJQxxQmYYIjYgMGwyFlFpJxpRUTgbbWhyICtSQ15yaDVzZRFHUB9YBjUpKnoYPAR3Ql9yRUQkLWkMXktwXh4TCH0BKCkod2oPBg4KXUhALCkyM39TBzgXWxxzNgxwT2EBJzYpOW0MSFFsXk5SLAptSTpJKjJERWx0emlpWHVwcC0JW0lJMy1YbjcGNwELQUlXCg5CUj9XFFAIViBeeHVqMThTRBFpbxFPR1I+NUYidExUWXURAWkRKGgHIzQuMmExJTAZaQ==.cgi [segue]
–2019-01-12 11:12:09-- https://www.pokerstars.it/cgi-bin/ams/download_NWJ0G34bLDMTEQtiCjVHTlJeLHoyMXhSBTgqJHsQJQxxQmYYIjYgMGwyFlFpJxpRUTgbbWhyICtSQ15yaDVzZRFHUB9YBjUpKnoYPAR3Ql9yRUQkLWkMXktwXh4TCH0BKCkod2oPBg4KXUhALCkyM39TBzgXWxxzNgxwT2EBJzYpOW0MSFFsXk5SLAptSTpJKjJERWx0emlpWHVwcC0JW0lJMy1YbjcGNwELQUlXCg5CUj9XFFAIViBeeHVqMThTRBFpbxFPR1I+NUYidExUWXURAWkRKGgHIzQuMmExJTAZaQ==.cgi
Riutilizzo della connessione esistente a www.pokerstars.it:443.
Richiesta HTTP inviata, in attesa di risposta… 200 OK
Lunghezza: 2173792 (2,1M) [application/octet-stream]
Salvataggio in: “PokerStarsInstallIT.exe”

PokerStarsInstallIT.exe 100%[==============================================================================================>] 2,07M 939KB/s in 2,3s

2019-01-12 11:12:11 (939 KB/s) - “PokerStarsInstallIT.exe” salvato [2173792/2173792]


#5

Thanks - i simply clicked the link provided by dorma and it downloaded. I’m in France so it must be something to do with my geolocation as to which site it was showing me.


#6

contact the developer/webmaster for that site. or search on google: pokerstars downloads, or try their forums :slight_smile:


#7

I suspect you’re looking for an option to set the User Agent string.

For wget:

-U agent-string
--user-agent=agent-string
    Identify as agent-string to the HTTP server.

    The HTTP protocol allows the clients to identify themselves using a "User-Agent"
    header field.  This enables distinguishing the WWW software, usually for
    statistical purposes or for tracing of protocol violations.  Wget normally
    identifies as Wget/version, version being the current version number of Wget.

    However, some sites have been known to impose the policy of tailoring the output
    according to the "User-Agent"-supplied information.  While this is not such a
    bad idea in theory, it has been abused by servers denying information to clients
    other than (historically) Netscape or, more frequently, Microsoft Internet
    Explorer.  This option allows you to change the "User-Agent" line issued by
    Wget.  Use of this option is discouraged, unless you really know what you are
    doing.

    Specifying empty user agent with --user-agent="" instructs Wget not to send the
    "User-Agent" header in HTTP requests.

For curl:

-A, --user-agent <name>
    (HTTP) Specify the User-Agent string to send to the HTTP  server.  To  encode
    blanks  in  the  string,  surround  the  string with single quote marks. This
    header can also be set with the -H, --header or the --proxy-header options.

    If this option is used several times, the last one will be used.

#8

A post was split to a new topic: Running PokerStars client in WINE