Sponsored Content
Top Forums UNIX for Dummies Questions & Answers file transfer from https to a Unix box Post 302199494 by sysgate on Tuesday 27th of May 2008 03:46:12 AM
Old 05-27-2008
Can be done in many ways, I guess, curl, wget, etc. Quick examples :
Code:
curl -vvv -c cookie -k -u user:pass https://hostname.com; curl -v -b cookie -k -O https://hostname.com/folder/file.name; rm -f cookie

This is curl powered one-liner, just replace the user, pass, hostname and path to file name.
With wget it's even more easy -
Code:
wget https://hostname.com/FileName

- shall you need the user and password authentication, take a look at the wget man pages for "--http-user=user" and "--http-password=password"
 

10 More Discussions You Might Find Interesting

1. IP Networking

File transfer from unix to NT box?

Is there a method to transfer a file from UNIX (AIX) to an NT box without the NT box having any special software running? I can ping the box via the network and I have a valid NT account to use. Is FTP a viable solution ? HELP! (10 Replies)
Discussion started by: jvacc
10 Replies

2. UNIX for Advanced & Expert Users

How to FTP a file generated at UNIX Box to NT Box

Hi all, I am generating a file on the Unix machine , now i want to FTP the same file to the NT machine. how can i do that and the application currently upon which i am working is a JAVA based application. I need your help. regards Ruchir (2 Replies)
Discussion started by: Ruchir
2 Replies

3. UNIX for Dummies Questions & Answers

File Upload Performance using IE from Windows to Unix via HTTPS

Hi, Is there any performance issue uploading a file using IE from Windows client to UNIX server via HTTPS? Before that, we were using HTTP protocol and everything run smooth Once we change to HTTPS, we might hit the "HTTP 500 Internal server error" Even though this does not happen all the... (1 Reply)
Discussion started by: darontan
1 Replies

4. UNIX for Dummies Questions & Answers

Running UNIX commands remotely in Windows box from Unix box – avoid entering password

I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked. Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies

5. UNIX for Advanced & Expert Users

FTP transfer from Linux to unix box

Hi, I transferred a tar.gz file from a linux server to a unix server using ftp. In the unix box when i untarred, only few files with zero bytes were copied and i get "tar dir : cksum error" Could anyone help me out ? Thanks & Regards, Abinaya (3 Replies)
Discussion started by: abinaya
3 Replies

6. UNIX for Advanced & Expert Users

Copy file from unix box to another unix box

Hi, I am new for perl scripting, I need a script to copy a log file /test/test_yyyymmdd.dat from one unix box to another unix box location /check/check1/ at daily 2:00AM, please let me know how to do that...... Regards, Ann (8 Replies)
Discussion started by: fabrine
8 Replies

7. Shell Programming and Scripting

ftp file starting with particular name on Windows box to Unix box using shell script

Hello all ! I'm trying to write a shell script (bash) to ftp a file starting with particular name like "Latest_" that is present on a Windows box to UNIX server. Basically I want to set this script in the cron so that daily the new build that is posted on the Windows box can be downloaded to the... (2 Replies)
Discussion started by: vijayb4u83
2 Replies

8. UNIX for Dummies Questions & Answers

Pulling a file from Unix box thru https

Hi I have a file called as MSD.DAT. This file is present at a directory on a server. www.ta.ibhsv.somewhere.com/rahdf/MSD.DAT Now, I want to get this file from this server to my Linux box. I need to write a script that uses https to get the file. Please help how to achieve this. ... (3 Replies)
Discussion started by: infyanurag
3 Replies

9. UNIX for Dummies Questions & Answers

Transferring the file from one UNIX box to another UNIX box

Hi Folks, I am using winscp to graphiclly move the files from one unix box to another unix box , let say one unix box crediantials is (These are dummy crediantials) xxx -->username yyy -->password and another unix box name is RRR -->username TTT -->password NOW i need to... (4 Replies)
Discussion started by: punpun66
4 Replies

10. Solaris

Need suggestion:- Failed HTTPS transfer to https://supportfiles.sun.com/curl

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
CURLOPT_PATH_AS_IS(3)					     curl_easy_setopt options					     CURLOPT_PATH_AS_IS(3)

NAME
CURLOPT_PATH_AS_IS - do not handle dot dot sequences SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PATH_AS_IS, long leaveit); DESCRIPTION
Set the long leaveit to 1, to explicitly tell libcurl to not alter the given path before passing it on to the server. This instructs libcurl to NOT squash sequences of "/../" or "/./" that may exist in the URL's path part and that is supposed to be removed according to RFC 3986 section 5.2.4. Some server implementations are known to (erroneously) require the dot dot sequences to remain in the path and some clients want to pass these on in order to try out server implementations. By default libcurl will merge such sequences before using the path. DEFAULT
0 PROTOCOLS
All EXAMPLE
CURL *curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/../../etc/password"); curl_easy_setopt(curl, CURLOPT_PATH_AS_IS, 1L); curl_easy_perform(curl); } AVAILABILITY
Aded in 7.42.0 RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. SEE ALSO
CURLOPT_STDERR(3), CURLOPT_DEBUGFUNCTION(3), CURLOPT_URL(3), libcurl 7.54.0 February 14, 2016 CURLOPT_PATH_AS_IS(3)
All times are GMT -4. The time now is 02:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy