The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
getting url from mozilla window phani_sree High Level Programming 2 11-15-2006 11:23 PM
Mozilla Navigator selim Linux 1 03-04-2005 07:09 AM
Does anyone use Mozilla Thunderbird cnitadesigner UNIX for Dummies Questions & Answers 1 01-05-2005 03:13 PM
Mozilla in Linux gnerd Linux 2 06-27-2004 01:39 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 11-15-2006
Registered User
 

Join Date: Nov 2006
Posts: 22
mozilla object

hi this
i tried for getting url form mozilla window.
and also for getting mozilla object file.
is there any plz tell the way.
thanking u.
ramesh
Reply With Quote
Forum Sponsor
  #2  
Old 11-15-2006
Registered User
 

Join Date: Nov 2006
Posts: 22
regarding URL

hi
i tried for getting url in mozilla
and used this commands

loading url google.com

open_uri_cb http://google.com/

load_started_cb

but noway from these

anybudy is there to help me plz

thanking u
ramesh
Reply With Quote
  #3  
Old 11-16-2006
Registered User
 

Join Date: Nov 2006
Posts: 22
mozilla

hi
i tried like this

main()
{
char *str;
str=system("/usr/bin/mozilla ","r");
printf("str= %s",str);
}

but i did n,t get the url
is anywat to this
thaks.
ramesh


}
Reply With Quote
  #4  
Old 11-16-2006
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,683
Please stop duplicating the posts. I have merged all the threads.

To get the URL there is not easy way out. This is what you have to do.

Go to ~/.mozilla/default/<some-random-string>/history.dat
Open the file, go the end and search for an url string.

This is what I have in my history.dat. The string in red is what you need to extract. www.unix.com was the last URL I visited.
Code:
<(4AE5=http://www.unix.com/)(4AE6=1163662659213668)(4AE7=www.unix.com)
  (4AE8
    =T$00h$00e$00 $00U$00N$00I$00X$00 $00F$00o$00r$00u$00m$00s$00 $00-$00 $00t\
$00h$00e$00 $00T$00o$00p$00 $00U$00N$00I$00X$00 $00&$00 $00L$00i$00n$00u$00x$00\
 $00Q$00&$00A$00 $00o$00n$00 $00t$00h$00e$00 $00W$00e$00b$00)>
{1:^80 {(k^81:c)(s=9)1 } [-92B(^82^4AE5)(^84^4AE6)(^85^4AE6)(^88^4AE7)
    (^8A=1)(^86=2)(^87^4AE8)]}
@$$}11}@

@$${12{@
@$$}12}@
Reply With Quote
  #5  
Old 11-16-2006
Registered User
 

Join Date: Nov 2006
Posts: 22
mozilla

hi vino
thank you verymuch. u'd given lot of information.
yes. ur , i find urls in that file.
and i've another doubt. how can i get the current url from
that file.
show me the way.
ram
Reply With Quote
  #6  
Old 11-16-2006
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,683
Please adhere to the rules And dont start a new thread. I have merged your other thread into this one.
Reply With Quote
  #7  
Old 11-16-2006
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,683
Quote:
Originally Posted by ramesh.jella
how can i get the current url from
that file.
show me the way.
ram
Remember I told you to go till the end of the history.dat and pick up the URL. Thats what you need to do. Parse the file. Keep a track on each URL you see till you hit the end of the file. The last URL you have is what you are looking for.

I dont have any boilerplate code at the moment to post. From what I can see, you need to detect lines starting with a '<' and then strings within (var=/some/url).
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:05 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0