--===============0893944042== Content-Type: multipart/alternative; boundary="----=_Part_88997_428261.1153812341957" ------=_Part_88997_428261.1153812341957 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, I am currently learning KHTMLPart for web browsing, but I got into some problems. When I tried to access SSL site (like https://www.gmail.com), I couldn't submit any field data. The response was empty. I wonder if there is any extra steps that I need to do. I tried to find a solution via google without success. Hopefully someone could help me out here :) The following is the python code I did: from kdeui import * from khtml import * from kdecore import * from qt import * class Form1(KMainWindow): def __init__(self): KMainWindow.__init__(self) self.lineEdit2 = QLineEdit(self,"lineEdit2") self.lineEdit2.setGeometry(QRect(0,0,601,31)) self.vBox1 = QVBox(self,"vBox1") self.vBox1.setGeometry(QRect(0,30,601,631)) self.vBox1 = QVBox(self,"vBox1") self.vBox1.setGeometry(QRect(0,30,601,631)) self.kHTMLPart1 = KHTMLPart(self.vBox1,"kHTMLPart1") self.languageChange() self.resize(QSize(607,665).expandedTo(self.minimumSizeHint())) self.clearWState(Qt.WState_Polished) self.connect(self.lineEdit2,SIGNAL("returnPressed()"), self.newURL) self.connect(self.kHTMLPart1.browserExtension(),SIGNAL("openURLRequest(const KURL&, const KParts::URLArgs&)"),self.openURLRequest) def languageChange(self): self.setCaption(self.__tr("Form1")) def newURL(self): e = self.lineEdit2.text().ascii() r = KURL(e) QMessageBox.information( self, "url", r.url()) self.kHTMLPart1.openURL(r) def openURLRequest(self,url,arg): QMessageBox.information( self, "url", url.url(), arg.contentType() ) self.kHTMLPart1.openURL(KURL(url)) def __tr(self,s,c = None): return qApp.translate("Form1",s,c) Thanks for taking a look, any comment will be appreciated :) Roger ------=_Part_88997_428261.1153812341957 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello,
     I am currently learning KHTMLPart for web browsing, but I got into some problems.
When I tried to access SSL site (like https://www.gmail.com), I couldn't submit any field data. The response was empty.
I wonder if there is any extra steps that I need to do. I tried to find a solution via google without success. Hopefully someone
could help me out here :)

The following is the python code I did:

from kdeui import *
from khtml import *
from kdecore import *
from qt import *

class Form1(KMainWindow):
    def __init__(self):
        KMainWindow.__init__(self)

        self.lineEdit2 = QLineEdit(self,"lineEdit2")
        self.lineEdit2.setGeometry(QRect(0,0,601,31))
        self.vBox1 = QVBox(self,"vBox1")
        self.vBox1.setGeometry(QRect(0,30,601,631))
        self.vBox1 = QVBox(self,"vBox1")
        self.vBox1.setGeometry(QRect(0,30,601,631))
        self.kHTMLPart1 = KHTMLPart(self.vBox1,"kHTMLPart1")
        self.languageChange()
        self.resize(QSize(607,665).expandedTo(self.minimumSizeHint ()))
        self.clearWState(Qt.WState_Polished)
        self.connect(self.lineEdit2,SIGNAL("returnPressed()"), self.newURL)
        self.connect(self.kHTMLPart1.browserExtension(),SIGNAL("openURLRequest(const KURL&, const KParts::URLArgs&)"), self.openURLRequest)

    def languageChange(self):
        self.setCaption(self.__tr("Form1"))

    def newURL(self):
        e = self.lineEdit2.text().ascii()
        r = KURL(e)
        QMessageBox.information( self, "url", r.url())
        self.kHTMLPart1.openURL(r)

    def openURLRequest(self,url,arg):
        QMessageBox.information( self, "url", url.url(), arg.contentType () )
        self.kHTMLPart1.openURL(KURL(url))

    def __tr(self,s,c = None):
        return qApp.translate("Form1",s,c)


Thanks for taking a look, any comment will be appreciated :)

Roger
------=_Part_88997_428261.1153812341957-- --===============0893944042== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============0893944042==--