[Mozile] save problem
James A. Overton
james at overton.ca
Thu Oct 19 07:10:54 PDT 2006
Mozile is expecting to receive a bit of XML in reply to the POST,
which will provide any error or status messages. See the
documentation here:
http://mozile.mozdev.org/0.7/modules/HTTPPost/PostSave05.htm
and the examples in the 0.7/modules/HTTPPost/PHPdemo/ directory.
Here is a sample OK response:
<mozile xmlns="http://www.mozile.mozdev.org/ns/save/">
<post>
<status>1</status>
<statustext>Saved OK</statustext>
</post>
</mozile>
Your PHP script can output that and Mozile will be happy.
James
On 2006-Oct-19, at 3:37 AM, Michael Felden wrote:
> Hi Max and everybody else,
> thanks for your help - save works now!
>
> $f = fopen('test.htm','w');
> fputs($f, file_get_contents('php://input'));
> fclose($f);
>
> But mozile still thinks something's wrong.
> I get 4 red status 3 messages:
>
> Beginning save...
> Save via HTTP POST: 1. Initialising ...
> Save via HTTP POST: 1. Sending ...
> Save Failed! Unextpected server response ...
>
> Maybe you can help me with that too?
>
> Regards
> Michael
More information about the Mozile
mailing list