Bug 64951 - flash-plugin: getURL with POST does not work
Summary: flash-plugin: getURL with POST does not work
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: nspluginviewer (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: George Staikos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-26 01:47 UTC by Thomas Friedrichsmeier
Modified: 2003-09-26 21:39 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Testcase of failing POST in a flash-movie (2.07 KB, application/gzip)
2003-09-26 14:35 UTC, Thomas Friedrichsmeier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Friedrichsmeier 2003-09-26 01:47:50 UTC
Version:            (using KDE KDE 3.1.3)
Installed from:    Debian testing/unstable Packages
OS:          Linux

As far as I understand, this is similar to bug #49746, which is marked as resolved but with the explicit comment, that only some bugs of this category are fixed, while other problems remain. I have not found any other bug-reports covering this specific issue, so opening a new report.

Problem:
In a flash movie, using

getURL ("[url]", "[target]", "POST");

will not work. Instead the URL will be fetched with "GET", resulting in a loss of all data that should have been transmitted in the POST. I first suspected, this might be related to the "Warn on submitting data unencrypted"-option, but disabling that option did not change the effect.
The same movie on the same machine, using the same flash-plugin, but in Mozilla 1.4 works as expected.
Comment 1 George Staikos 2003-09-26 07:18:05 UTC
POST works for me, so please provide an example that does not work. 
Comment 2 Thomas Friedrichsmeier 2003-09-26 14:35:18 UTC
Created attachment 2588 [details]
Testcase of failing POST in a flash-movie

Unpack this in a directory on a PHP-enabled web-server. Then point your browser
to the post.swf -movie in that directory on the server. You should be
immediately redirected to the post.php -script, which will either show "The
problem is reproducible" (Konqueror 3.1.3) or "The problem is not reproducible"
(Mozilla 1.4).
The flash-movie contains nothing but the following Actionscript in the first
Frame:

stop ();
_root.test = "not ";
_root.getUrl ("post.php", "_top", "POST");

The php-script basically just echoes $HTTP_POST_VARS['test']. The problem can
also be seen in the web-servers access-log, which shows a GET for konqueror but
a POST for Mozilla.
Comment 3 George Staikos 2003-09-26 17:17:54 UTC
Ok I have it doing POST now, but the data is coming through incorrect.  Once 
this is fixed I will commit. 
Comment 4 George Staikos 2003-09-26 21:39:14 UTC
Subject: kdebase/nsplugins

CVS commit by staikos: 

Get more types of POST working with nsplugins.

CCMAIL: 64951-done@bugs.kde.org


  M +1 -0      NSPluginCallbackIface.h   1.9
  M +23 -1     plugin_part.cpp   1.51
  M +2 -0      plugin_part.h   1.25
  M +8 -3      viewer/nsplugin.cpp   1.103