[Webkit-unassigned] [Bug 70235] HTML "POST" method not working

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 9 05:13:29 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=70235





--- Comment #2 from Paul <paullj1 at gmail.com>  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?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list