Sponsored Content
Top Forums Shell Programming and Scripting wget - cookie with expiration date Post 302502720 by Corona688 on Tuesday 8th of March 2011 05:12:43 PM
Old 03-08-2011
Make sure you tell wget to keep session cookies. Otherwise it won't.
 

10 More Discussions You Might Find Interesting

1. Linux

Cant locate CGI/Cookie.pm

hi frnds i m getting this error whenever i m trying to run otrs in my web browser. http://ipaddr /otrs/index.pl " 500 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your... (1 Reply)
Discussion started by: naik_mit
1 Replies

2. Shell Programming and Scripting

cannot use the same script to read cookie

Hi all, I am using the following code to read a cookie. when this script is hosted on a unix server(solaris) it runs perfect. but when executed on a windows machine cannot retrieve the cookie. --------------------------------------- # Modules used use CGI; # Create an object of CGI... (0 Replies)
Discussion started by: azmathshaikh
0 Replies

3. UNIX for Dummies Questions & Answers

using wget with date variables

I have a url that I need to get using wget. This url string needs to contain two values referring to today's date and a date 3 months from now. I have it mostly finished, I think, but am having difficulty with concatenating the date variable with the url string. today=`date "+%m%d%Y"`;... (2 Replies)
Discussion started by: alternapop
2 Replies

4. UNIX for Dummies Questions & Answers

find out expiration date

I want to know when my account is gonna expire. Is there a shell command that tells this? (11 Replies)
Discussion started by: gilbav
11 Replies

5. Solaris

Expiration date of user account

Hi, How to check user account expiration account in user mode for SunOS 5.10? In Linux I can use chage command. I googled for answer for the problem but it was useless. Oskar (9 Replies)
Discussion started by: oskard
9 Replies

6. Shell Programming and Scripting

how to use WGET command to get today's date?

I need to get the current date off a remote site, such as Google or Yahoo. Does anyone know how to use the wget command on a Solaris 10 system to do this? I recall a long time ago, where using "wget" will get a bunch of info off a site, and then, you can extract the date from all of that info. ... (6 Replies)
Discussion started by: newbie09
6 Replies

7. What is on Your Mind?

Neo's passport expiration date.

I found this to be a bit of a disturbing coincidence. youtube.com/watch?v=CxW79CwSK9M&hd=1 (0 Replies)
Discussion started by: absorber
0 Replies

8. Shell Programming and Scripting

Problem with wget and cookie

Dear people, I got a problem with an scrip using wget to download pdf-files from an website which uses session-cookies. Background: for university its quite nasty to look up weekly which new homeworks, papers etc. are available on the different sites of the universites chairs. So I wanted a... (1 Reply)
Discussion started by: jackomo
1 Replies

9. Shell Programming and Scripting

Cookie authenticationn

I am trying to wget to retrieve a file from an ubuntu server. I believe I need a cookie authentication, but am am having trouble. I am reading the maual and it is not making sense. I have also tried wget http://..... --username=... --password=... Thank you. (2 Replies)
Discussion started by: cmccabe
2 Replies

10. HP-UX

How to check password expiration date of particular user?

Hi Guys, I am new to HP-UX and want to find expiration date of particular user please also note i don't have root access on that server. for e.g. i have user abc on my HP box and want to know when its password going to expire and also when its password changed last time. I also try to... (7 Replies)
Discussion started by: Yasin Rakhangi
7 Replies
CURLOPT_COOKIEJAR(3)					     curl_easy_setopt options					      CURLOPT_COOKIEJAR(3)

NAME
CURLOPT_COOKIEJAR - file name to store cookies to SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_COOKIEJAR, char *filename); DESCRIPTION
Pass a filename as char *, zero terminated. This will make libcurl write all internally known cookies to the specified file when curl_easy_cleanup(3) is called. If no cookies are known, no file will be created. Specify "-" as filename to instead have the cookies writ- ten to stdout. Using this option also enables cookies for this session, so if you for example follow a location it will make matching cook- ies get sent accordingly. Note that libcurl doesn't read any cookies from the cookie jar. If you want to read cookies from a file, use CURLOPT_COOKIEFILE(3). If the cookie jar file can't be created or written to (when the curl_easy_cleanup(3) is called), libcurl will not and cannot report an error for this. Using CURLOPT_VERBOSE(3) or CURLOPT_DEBUGFUNCTION(3) will get a warning to display, but that is the only visible feedback you get about this possibly lethal situation. Since 7.43.0 cookies that were imported in the Set-Cookie format without a domain name are not exported by this option. The application does not have to keep the string around after setting this option. DEFAULT
NULL PROTOCOLS
HTTP EXAMPLE
TODO AVAILABILITY
Along with HTTP RETURN VALUE
Returns CURLE_OK if HTTP is supported, CURLE_UNKNOWN_OPTION if not, or CURLE_OUT_OF_MEMORY if there was insufficient heap space. SEE ALSO
CURLOPT_COOKIEFILE(3), CURLOPT_COOKIE(3), CURLOPT_COOKIELIST(3), libcurl 7.54.0 December 21, 2016 CURLOPT_COOKIEJAR(3)
All times are GMT -4. The time now is 06:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy