LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-27-2012, 10:25 AM   #1
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Rep: Reputation: 8
Retrieve the exact URL path


how cat i retrieve the exact path of a url.
naturally when we want to open the google page we simply enter the www.google.com in the url.but the actual page that we see is http://www.google.com/index.html.
i want to retrieve the index.html for let's just say saving it.
if anybody have any ideas, please share it.
alose i', using pygtk.
tanX
 
Old 01-27-2012, 10:37 AM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 243Reputation: 243Reputation: 243
If the url is correct, you can get data and save that in any filename you want

Like: wget -O myindex.html www.google.com
 
Old 01-27-2012, 10:46 AM   #3
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Original Poster
Rep: Reputation: 8
that's right but suppose i don't know the name of the default page !!!
this is the situation that i want to cover up
 
Old 01-27-2012, 10:51 AM   #4
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 243Reputation: 243Reputation: 243
What is the problem with not knowing the default page name ? You get data anyway...
 
Old 01-27-2012, 10:54 AM   #5
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Original Poster
Rep: Reputation: 8
the problem is i want to save it in the right format.i cant save a php page as you suggested
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid not retrieve URL Alexoes Linux - Security 4 11-19-2010 10:22 PM
ERROR The requested URL could not be retrieved While trying to retrieve the URL: /re Niceman2005 Linux - General 1 06-29-2005 09:51 AM
While trying to retrieve the URL: /reports The following error was encountered: Niceman2005 Linux - General 4 05-27-2005 06:55 PM
Need to specify the full URL path.. Why? soichih Linux - Networking 3 07-31-2004 08:37 AM
Exact URL to get gcc? ivanatora Linux - Newbie 4 09-19-2003 07:15 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration