My question was (and still stands) "Is it possible to save cookies for that
site using wget?"
I tried following two commands as you suggested , still nothing functional
comes out.

wget -d -o report1.txt --user-agent="Mozilla/5.0 (X11; Linux x86_64)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36"
--header="Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" --header="Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
--header="Accept-Language: en-GB,en;q=0.8,en-US;q=0.6,bn;q=0.4"
--header="Accept-Encoding: gzip, deflate, sdch" --header="Connection:
keep-alive" --keep-session-cookies --save-cookies cookie.txt --post-data
'user_name=My_user_name&user_password=My_pass'
http://www.cinehub24.com/auth/login

wget -d -o report2.txt --user-agent="Mozilla/5.0 (X11; Linux x86_64)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36"
--keep-session-cookies --save-cookies cookie.txt --post-data
'user_name=My_user_name&user_password=My_pass'
http://www.cinehub24.com/auth/login
DEBUG output created by Wget 1.17.1 on linux-gnu.

Reading HSTS entries from /home/burhan/.wget-hsts
URI encoding = ‘UTF-8’
--2016-08-02 18:40:34--  http://www.cinehub24.com/auth/login
Resolving www.cinehub24.com (www.cinehub24.com)... 203.76.96.46
Caching www.cinehub24.com => 203.76.96.46
Connecting to www.cinehub24.com (www.cinehub24.com)|203.76.96.46|:80... 
connected.
Created socket 4.
Releasing 0x0000560799e63e40 (new refcount 1).

---request begin---
POST /auth/login HTTP/1.1
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/52.0.2743.82 Safari/537.36
Accept: 
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding: gzip, deflate, sdch
Host: www.cinehub24.com
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 55
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Language: en-GB,en;q=0.8,en-US;q=0.6,bn;q=0.4

---request end---
[BODY data: user_name=My_user_name&user_password=my_pass]
HTTP request sent, awaiting response... 
---response begin---
HTTP/1.1 200 OK
Date: Tue, 02 Aug 2016 12:32:39 GMT
Server: Apache/2.2.15 (CentOS)
X-Powered-By: PHP/5.3.3
Set-Cookie: PHPSESSID=0thg9rp2ol4pc6ah49ct7ih371; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8

---response end---
200 OK

Stored cookie www.cinehub24.com -1 (ANY) / <session> <insecure> [expiry none] 
PHPSESSID 0thg9rp2ol4pc6ah49ct7ih371
Registered socket 4 for persistent reuse.
URI content encoding = ‘UTF-8’
Length: unspecified [text/html]
Saving to: ‘login.4’

     0K .......... ......                                      2.69M=0.006s

2016-08-02 18:40:35 (2.69 MB/s) - ‘login.4’ saved [16655]

Saving cookies to cookie.txt.
Done saving cookies.
Saving HSTS entries to /home/burhan/.wget-hsts
DEBUG output created by Wget 1.17.1 on linux-gnu.

Reading HSTS entries from /home/burhan/.wget-hsts
URI encoding = ‘UTF-8’
--2016-08-02 18:43:39--  http://www.cinehub24.com/auth/login
Resolving www.cinehub24.com (www.cinehub24.com)... 203.76.96.46
Caching www.cinehub24.com => 203.76.96.46
Connecting to www.cinehub24.com (www.cinehub24.com)|203.76.96.46|:80... 
connected.
Created socket 4.
Releasing 0x000055ded14c4a50 (new refcount 1).

---request begin---
POST /auth/login HTTP/1.1
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/52.0.2743.82 Safari/537.36
Accept: */*
Accept-Encoding: identity
Host: www.cinehub24.com
Connection: Keep-Alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 55

---request end---
[BODY data: user_name=My_user_name&user_password=my_pass]
HTTP request sent, awaiting response... 
---response begin---
HTTP/1.1 200 OK
Date: Tue, 02 Aug 2016 12:35:44 GMT
Server: Apache/2.2.15 (CentOS)
X-Powered-By: PHP/5.3.3
Set-Cookie: PHPSESSID=fkbo39i3fsije89fh0444rjni7; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8

---response end---
200 OK

Stored cookie www.cinehub24.com -1 (ANY) / <session> <insecure> [expiry none] 
PHPSESSID fkbo39i3fsije89fh0444rjni7
Registered socket 4 for persistent reuse.
URI content encoding = ‘UTF-8’
Length: unspecified [text/html]
Saving to: ‘login.5’

     0K .......... ......                                      1.94M=0.008s

2016-08-02 18:43:39 (1.94 MB/s) - ‘login.5’ saved [16655]

Saving cookies to cookie.txt.
Done saving cookies.
Saving HSTS entries to /home/burhan/.wget-hsts

Reply via email to