WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
70235
HTML "POST" method not working
https://bugs.webkit.org/show_bug.cgi?id=70235
Summary
HTML "POST" method not working
Paul
Reported
2011-10-17 07:20:25 PDT
I've embedded a webkit gtk widget in a GtkLayout and can set the URL and load web pages fine with one exception. Anytime I do a "POST" from a PHP controller inside an ExtJS page, the browser can't find the information. "GET" works just fine, but for some reason the browser is having problems retrieving the "POST" data. The OS Being used is Ubuntu: $ apt-cache show libwebkitgtk-3.0-0 Package: libwebkitgtk-3.0-0 Priority: optional Section: libs Installed-Size: 21820 Maintainer: Ubuntu Developers <
ubuntu-devel-discuss@lists.ubuntu.com
> Original-Maintainer: Debian WebKit Maintainers <
pkg-webkit-maintainers@lists.alioth.debian.org
> Architecture: i386 Source: webkit Version: 1.4.3-0ubuntu3 Depends: libatk1.0-0 (>= 1.12.4), libc6 (>= 2.11), libcairo2 (>= 1.10.0), libenchant1c2a (>= 1.6), libfontconfig1 (>= 2.8.0), libfreetype6 (>= 2.2.1), libgail-3-0 (>= 3.0.0), libgcc1 (>= 1:4.1.1), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.28.0), libgstreamer-plugins-base0.10-0 (>= 0.10.31), libgstreamer0.10-0 (>= 0.10.31), libgtk-3-0 (>= 3.0.0), libicu44 (>= 4.4.1-1), libjpeg62 (>= 6b1), libpango1.0-0 (>= 1.22.0), libpng12-0 (>= 1.2.13-4), libsoup2.4-1 (>= 2.33.92), libsqlite3-0 (>= 3.5.9), libstdc++6 (>= 4.1.1), libx11-6, libxml2 (>= 2.7.4), libxrender1, libxslt1.1 (>= 1.1.25), libxt6, libwebkitgtk-3.0-common (>= 1.4.3) Filename: pool/main/w/webkit/libwebkitgtk-3.0-0_1.4.3-0ubuntu3_i386.deb Size: 7051868 MD5sum: 83867affbadafd2020e9ca29552eaa14 SHA1: 68d2b1fa5b20ba0a517bd8717088ea48dab13182 SHA256: 967111584d3a04a865e6735f8ff6327dfa9790f1142c1ecd1e3f9630e4266fca Description-en: Web content engine library for Gtk+ WebKit is a web content engine, derived from KHTML and KJS from KDE, and used primarily in Apple's Safari browser. It is made to be embedded in other applications, such as mail readers, or web browsers. . It is able to display content such as HTML, SVG, XML, and others. It also supports DOM, XMLHttpRequest, XSLT, CSS, Javascript/ECMAscript and more. . This is the library for embedding in Gtk+ applications. Homepage:
http://webkit.org/
Description-md5: bca91605610edfaf76f763d0f248ab54 Bugs:
https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu Supported: 18m Task: ubuntu-desktop, ubuntu-usb, edubuntu-desktop, edubuntu-usb, xubuntu-desktop, mythbuntu-backend-master, mythbuntu-backend-master, mythbuntu-backend-slave, mythbuntu-backend-slave, mythbuntu-desktop, mythbuntu-frontend, mythbuntu-frontend, lubuntu-live, ubuntustudio-desktop
Attachments
Add attachment
proposed patch, testcase, etc.
Sergio Villar Senin
Comment 1
2011-11-09 03:57:54 PST
(In reply to
comment #0
)
> I've embedded a webkit gtk widget in a GtkLayout and can set the URL and load web pages fine with one exception. Anytime I do a "POST" from a PHP controller inside an ExtJS page, the browser can't find the information. "GET" works just fine, but for some reason the browser is having problems retrieving the "POST" data.
Could you explain a little bit what you mean with "browser can't find the information" ? Also, is there any test case you could provide?
Paul
Comment 2
2011-11-09 05:13:30 PST
I have an Ext JS page that uses the POST method to generate JS from a PHP script. The JS never gets generated, thus, the browser can't render the objects created. If I use GET, in my proxy instead, the JS is rendered, and everything looks fine. Here's an example of the JS code... var language_store = new Ext.data.Store({ autoLoad: true, proxy: new Ext.data.HttpProxy({ url: 'get_available_languages', method: 'POST' }), reader: new Ext.data.JsonReader({ }, [ 'LanguageName', 'LanguageDisplayString', 'DefaultLanguage', 'LanguageID', 'AvailableToMachine' ]) }); This data store is used to populate a combo box with several languages. The information is retrieved from a sqlite database via a PHP controller. When the method is 'POST', it can't get the data. When it's 'GET' the combobox has the information it needs, and renders properly. As for a test case, I made a very simple test program that created a webkit_gtk widget, embedded it in a Gtk::Window, and loaded a URI. The code example above when coupled with a PHP controller to generate a JSON object will reproduce my problem. I hope that this is a better description of the problem. Please let me know if you need more information. It would be really nice if I could get this to work. Thanks, Paul (In reply to
comment #1
)
> (In reply to
comment #0
) > > I've embedded a webkit gtk widget in a GtkLayout and can set the URL and load web pages fine with one exception. Anytime I do a "POST" from a PHP controller inside an ExtJS page, the browser can't find the information. "GET" works just fine, but for some reason the browser is having problems retrieving the "POST" data. > > Could you explain a little bit what you mean with "browser can't find the information" ? Also, is there any test case you could provide?
Sergio Villar Senin
Comment 3
2012-01-21 04:07:42 PST
Looks like a bug in your code as POST is working fine right now in WebKitGtk+
Alberto Garcia
Comment 4
2013-09-11 04:26:36 PDT
(In reply to
comment #3
)
> Looks like a bug in your code as POST is working fine right now in WebKitGtk+
Closing bug, please reopen if it's still relevant.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug