konqeror: "in-memory" page manipulation, same-session form submission, or https interception

h019 at ied.com h019 at ied.com
Wed Nov 6 00:31:12 GMT 2002



 Hi, 

 In short: I need to modify a received page before the browser interprets 
it.
 Q: Does the browser have a javascript debugger ? Maybe I could tell it
"switch context to current page, redefine this submit function", and then
I would submit the page with the new redefined function.

 Longer explanation:

  I'm in a situation where a provider has unexpectedly changed WEB
interface (removed "show usage two months back"), so now I can't retrieve
the data for previous usage, which I desparately need !

  I *know* that if I submit the right data in the form, I will get the 
data back. There is now to reach the provider to get the data from them 
any other way. The only way is through the WEB interface. (Which they 
changed on me! Argh !)

  But their interface uses in-memory sessions and cookies or something, so 
the method of Save_the_page_as_file - Modify_file - Use_file_to_submit_form 
doesn't work, because when I load the modified page from file, the session 
cookies or something are not included, so their server refuses to talk to 
me.

 How can I dump the in-memory cookies / session of a displayed window ( / 
document / connection ) ? How can I cause for the same session data to 
load back into a window (if I load that window with a "file:/..." URL)

 What I need is to change one javascript function in the page (it's a page
in a frame), and then display the page as if it came directly from the 
server. Then clicking on "submit" will invoke my modified function 
(instead of the one the server provided), and everything will work.

 Ideally, I could modify anything in the page by modifying the DOM tree -
there is a DOM tree viewer for the browser, but I didn't find a DOM tree
editor - where can I find it, or what could I slap together to make myself
a "DOM tree editor" ? (Even if it was somewhat cumbersome)

 Another option could be to intercept the communication, but they only
accept HTTPS protocol, so I can't do a man-in-the-middle modification of
the data being passed back-and-forth. If I could somehow intercept the
communication after the browser receives & decrypts it from SSL socket,
but before it reads it in for processing, that would do as well.

 Does Konqueror have a javascript debugger ? Maybe I could tell it "switch 
context to current page, redefine this submit function", and then I would 
submit the form with the new redefined function.

 Or how could I tell the browser: "do HTTPS/1.x POST" with the following
data (including in-memory cookies / session info, etc).


   Thanx,

      John


PS: unrelated how can I tell the browser to *always* create new windows on
the desktop in maximized state ? (when I press Ctrl-N or middle click or
otherwise a new window is created)

-- 
-- Gospel of Jesus' kingdom = saving power of God for all who believe --
                 ## To some, nothing is impossible. ##
                       http://Honza.Vicherek.com/





More information about the kfm-devel mailing list