11-21-2011
try adding the --keep-session-cookies flag (used for temporary cookies such as those used to maintain login sessions.
As an aside: "but it doesn't work" isn't enough information to offer really useful advice, you should state any errors, whether you get thrown to a login page again rather than the landing page when you normally log in etc...
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I have a situation....where I have to make a HTTPS:// connection to the third party web site to grab 5 files from their server.
I am little new to unix.
Can anyone please help me creating the shell script for making this connection and grabing or reading the files from their server to... (2 Replies)
Discussion started by: rkumar28
2 Replies
2. UNIX for Dummies Questions & Answers
Hey,
I connected with Cygwin and this command:
"ssh -Y USER@web.com"
Then trying to open a program, but this error appeared:
"Cannot open X display: DISPLAY variable unset"
what do I have to do?
Thanks.
Alex (3 Replies)
Discussion started by: alf123
3 Replies
3. Solaris
Hi everyone,
I am hoping anyone of you could help me in this weird problem we have in 1 of our Solaris 10 servers. Lately, we have been having some ftp problems in this server. Though it can ping any server within the network, it seems that it can only ftp to a select few. For most servers, the... (4 Replies)
Discussion started by: labdakos
4 Replies
4. UNIX for Advanced & Expert Users
Hi
Script
> grep translate .bashrc
translate(){ wget -qO- "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=$1&langpair=$2|${3:-en}" | sed 's/.*"translatedText":"\(*\)".*}/\1\n/'; }
error
> translate "Ich will schwimmen" de en
{"responseData": null,... (5 Replies)
Discussion started by: slashdotweenie
5 Replies
5. AIX
Hello,
can someone tell me where the certificate store on aix 6.1 is. If I want to use wget with a https site Iam getting an error that the issuer is untrusted. Thats right because its an self sign certificate. (3 Replies)
Discussion started by: ralphk
3 Replies
6. UNIX for Advanced & Expert Users
HI !!
I have this setup where I have Windows machine and a UNIX based DUT .
I try to make a https connection from my Win to the DUT giving its IP.
But,it is not working (It should do).
What do u think the problem is ?? I checked the logs , they flag some writesocket:broken pipe error in... (1 Reply)
Discussion started by: leghorn
1 Replies
7. Solaris
Hi forums,
I was wondering if any of you have faced this problem that I have been having for quite some time now regarding serial connection with putty to my Solaris Box Sunfire v250 and Sun v220 and sun v440.
The serial connection freezes on my Windows 7 64 and 32 Bit machines.
I unplug and... (3 Replies)
Discussion started by: br1an
3 Replies
8. Shell Programming and Scripting
Hi,
I would like to download a file from a https website. I don't have the file name as it changes every day.
I am using the following command:
wget --no-check-certificate -r -np --user=ABC --password=DEF -O temp.txt https://<website/directory>
I am getting followin error in my... (9 Replies)
Discussion started by: pinnacle
9 Replies
9. Solaris
Hi Guys,
I have recently started reciving below Error message
Failed HTTPS transfer to https://supportfiles.sun.com/curl
whenever I run
/usr/local/bin/sudo /opt/SUNWexplo/bin/explorer -P -q -v
from all Servers.
Looks like the SSL certificate as Expired.
Whenever I type... (4 Replies)
Discussion started by: manalisharmabe
4 Replies
LEARN ABOUT DEBIAN
net::https::nb
Net::HTTPS::NB(3pm) User Contributed Perl Documentation Net::HTTPS::NB(3pm)
NAME
Net::HTTPS::NB - Non-blocking HTTPS client
SYNOPSIS
Example from Net::HTTP::NB
use Net::HTTPS::NB;
use IO::Select;
use strict;
my $s = Net::HTTPS::NB->new(Host => "pause.perl.org") || die $@;
$s->write_request(GET => "/");
my $sel = IO::Select->new($s);
READ_HEADER: {
die "Header timeout" unless $sel->can_read(10);
my($code, $mess, %h) = $s->read_response_headers;
redo READ_HEADER unless $code;
}
while(1) {
die "Body timeout" unless $sel->can_read(10);
my $buf;
my $n = $s->read_entity_body($buf, 1024);
last unless $n;
print $buf;
}
Example of non-blocking connect
use strict;
use Net::HTTPS::NB;
use IO::Select;
my $sock = Net::HTTPS::NB->new(Host => 'encrypted.google.com', Blocking => 0);
my $sele = IO::Select->new($sock);
until ($sock->connected) {
if ($HTTPS_ERROR == HTTPS_WANT_READ) {
$sele->can_read();
}
elsif($HTTPS_ERROR == HTTPS_WANT_WRITE) {
$sele->can_write();
}
else {
die 'Unknown error: ', $HTTPS_ERROR;
}
}
See `examples' subdirectory for more examples.
DESCRIPTION
Same interface as Net::HTTPS but it will never try multiple reads when the read_response_headers() or read_entity_body() methods are
invoked. In addition allows non-blocking connect.
If read_response_headers() did not see enough data to complete the headers an empty list is returned.
If read_entity_body() did not see new entity data in its read the value -1 is returned.
PACKAGE CONSTANTS
Imported by default
HTTPS_WANT_READ
HTTPS_WANT_WRITE
PACKAGE VARIABLES
Imported by default
$HTTPS_ERROR
METHODS
new(%cfg)
Same as Net::HTTPS::new, but in addition allows `Blocking' parameter. By setting this parameter to 0 you can perform non-blocking connect.
See connected() to determine when connection completed.
connected()
Returns true value when connection completed (https handshake done). Otherwise returns false. In this case you can check $HTTPS_ERROR to
determine what handshake need for, read or write. $HTTPS_ERROR could be HTTPS_NEED_READ or HTTPS_NEED_WRITE respectively. See "SYNOPSIS".
blocking($flag)
As opposed to Net::HTTPS where blocking method consciously broken you can set socket blocking. For example you can return socket to
blocking state after non-blocking connect.
SEE ALSO
Net::HTTP, Net::HTTP::NB
COPYRIGHT
Copyright 2011 Oleg G <oleg@cpan.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2011-06-07 Net::HTTPS::NB(3pm)