434 """ |
434 """ |
435 form = LoginForm() |
435 form = LoginForm() |
436 if boundary is not None: |
436 if boundary is not None: |
437 args = self.__extractMultipartQueryItems(data, boundary) |
437 args = self.__extractMultipartQueryItems(data, boundary) |
438 else: |
438 else: |
439 argsUrl = QUrl.fromEncoded(QByteArray("foo://bar.com/?" + data)) |
439 argsUrl = QUrl.fromEncoded( |
|
440 QByteArray("foo://bar.com/?" + data.replace(b"+", b"%20"))) |
440 encodedArgs = argsUrl.queryItems() |
441 encodedArgs = argsUrl.queryItems() |
441 args = set() |
442 args = set() |
442 for arg in encodedArgs: |
443 for arg in encodedArgs: |
443 key = arg[0] |
444 key = arg[0] |
444 value = arg[1].replace("+", " ") |
445 value = arg[1] |
445 args.add((key, value)) |
446 args.add((key, value)) |
446 |
447 |
447 # extract the forms |
448 # extract the forms |
448 lst = webPage.mainFrame().evaluateJavaScript(parseForms_js) |
449 lst = webPage.mainFrame().evaluateJavaScript(parseForms_js) |
449 for map in lst: |
450 for map in lst: |