WGET in Ubuntu( vistual img ) vs Red Hat


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu WGET in Ubuntu( vistual img ) vs Red Hat
# 1  
Old 01-12-2010
WGET in Ubuntu( vistual img ) vs Red Hat

Hi
I need to fetch a file using wget command.
In read Hat I have the file I need without any problem while in Ubuntu ( installed on a virtual image ) it doesn't work.
More precisely my wget need to fetch a page from a web site with secure authentication so teh syntax I am using is

wget --http-user=<username> --http-password=<pwd> -O myfile.csv "https::<myurl>"

What could be the reason and how to fix it?
# 2  
Old 01-12-2010
"It doesn't work" is quite useful as an error description if there were any psychics around. Until then, could you be a bit more specific?

What errors do you get? Do you get any errors at all? What virtualization software are you using? How does the guest OS connect to the network? Is the network accessible at all, eg can you ping anything? Any firewalls that might be active?
# 3  
Old 01-12-2010
you are right and I am sorry for that.
In red Hat I have the .csv file I have while in Ubuntu I download a file containing the HTML code for the login page of the web site I want to access. with the User / Password field and the Login button.
# 4  
Old 01-12-2010
We're (slowly) starting to get somewhere. What's the version of wget on the different machines? Is there any other noteworthy difference in configuration, eg. different subnets or network paths? How does the web site authenticate an user? Through basic authentication, NTLM, or maybe cookies?
# 5  
Old 01-12-2010
In ubuntu there is VNU Wget 1.11.4 while in RedHat is GNU 1.10.2 ( Red Hat modified ).
I don't know what kind of authentication I am using; my guess is cookies because if I close the browser and reopen I am still authenticated.
With Basic authentication I should expect some window to popup. If it is NLTM I don't know..what I can see for the network properties? ( I am a bit newbie )
# 6  
Old 01-12-2010
With NTLM you'd get the same authentication window as with basic authentication, only you'd authenticate against a MS domain.

By your description I'd say cookies, too, which usually isn't something that wget can do by itself. The --http-* options usually are only for basic/digest authentication, so cookie authentication is either a feature from the modified wget binary on Red Hat, or there's some other factor.

There are 3 options that could work:
  • Create a "cookie jar" that can be used with wget's --load-cookies
  • Pass the cookie required using wget's --header (see the man page for more details)
  • Switch to curl and use -b/--cookie to pass a cookie along
Details depend on what cookies the site expects to be set to what values.
# 7  
Old 01-12-2010
Ok. I will try all of these.
Thank you very much for your help
Kind regards
cs
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Another one line command where I'd like to determine if Ubuntu or Red Hat when running command

Hello Forum, I'm making very good progress on my report thanks to the very helpful people on this forum. I've been able to successfully create my report for my Red Hat servers. But I do have a few ubuntu servers in the mix and I'd like to capture some data from them when an ssh connection is... (8 Replies)
Discussion started by: greavette
8 Replies

2. Shell Programming and Scripting

Red Hat and Ubuntu shell scripting

Are basic scripts in awk or bash or perl or other shell scripting languages the same in RHEL red hat as ubuntu? (1 Reply)
Discussion started by: cmccabe
1 Replies

3. UNIX for Dummies Questions & Answers

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ?

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ? (2 Replies)
Discussion started by: ahmedamer12
2 Replies

4. Ubuntu

[UBUNTU] mount.nfs fails in Ubuntu / Works on Red Hat!!!

Gurus, I want log in locally to my Lucid (10.04) workstation and have my code saved over the network on my samba account At work, all developers have samba user ids and when we were running Red Hat, we went thru the following procedure to get setup. * open a shell session to NFS server... (2 Replies)
Discussion started by: alan
2 Replies

5. Red Hat

Red Hat E 3

I'm am working with a Red Hat Enterprise 3 server. This is a dedicated server that is supposedly dedicated to one domain, but I have been tasked with trying to figure out if there are files on this system that are being accessed by other IP's. Does anyone know if how I would go about finding... (0 Replies)
Discussion started by: chrisPlusPlus
0 Replies

6. Ubuntu

make Ubuntu and Red Hat boot partitions

Is it possible to make multiboot partitions of Ubuntu and red hat Linux? (4 Replies)
Discussion started by: sito
4 Replies

7. Linux

red hat ee 2.6.9-42

hello. I would be greatfull if someone could tell me how will i see what dns server and gateway my red hat server uses. I tryied to find out by typing ifconfig command but i got : -bash: ifconfig: command not found , although man ifonconfig gives output with info about using that command. Is... (3 Replies)
Discussion started by: tonijel
3 Replies

8. Linux

Red Hat?

I have a Red Hat upgrade disk. I installed it and it corrupted my entire hard drive! I had gotten the disks out of a Dummy's book at my local library. Trying to install 'Red Hat', has cost me $100.00 in damages. (The cool part is my friend gave me that $100.00 part) Ah...A 120gig Hard Drive. Just... (3 Replies)
Discussion started by: hdk_mkr
3 Replies
Login or Register to Ask a Question