Re: Invalid Xml Stream sended

G E T O U T <[email protected]> Mon, 15 Jun 2009 10:21:29 +0530
Newsgroups gmane.comp.php.xml-rpc
Message-ID <[email protected]>
--===============1494838361==
Content-Type: multipart/alternative; boundary=0016e642d872b46a00046c5bcfa4

--0016e642d872b46a00046c5bcfa4
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi Jamel,

The representation which you have posted here is actually the raw HTTP
response. The blank lines after the content type are absolutely necessary as
they separate HTTP headers and HTTP body in HTTP response. If you try to
modify these, it will result in erroneous HTTP response which in turn could
not be understood by libraries and will break.

Thanks n Regards,


On Wed, May 20, 2009 at 6:25 PM, Jamel ESSOUSSI <
[email protected]> wrote:

> Hi,
> Can you help me please to modify in the server side the xml sended,
> In fact, I would like to delete the second blank line in the retruned
> xml afetr the content-type line.
>
> HTTP/1.1 200 OK
> Date: Wed, 20 May 2009 12:16:44 GMT
> Server: Apache/2.2.11 (Unix) PHP/4.4.9 mod_ssl/2.2.11 OpenSSL/0.9.8c
> X-Powered-By: PHP/4.4.9
> Vary: Accept-Charset
> Content-Length: 360
> Keep-Alive: timeout=2, max=100
> Connection: Keep-Alive
> Content-Type: text/xml; charset=UTF-8
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <methodResponse>
> <fault>
> <value>
> <struct><member><name>faultCode</name>
> <value><int>3</int></value>
> </member>
> <member>
> <name>faultString</name>
> <value><string>Incorrect parameters passed to method: No method
> signature matches number of parameters</string></value>
> </member>
> </struct>
> </value>
> </fault>
> </methodResponse>
>
> Regards
> --Jamel
> _______________________________________________
> phpxmlrpc mailing list
> [email protected]
> http://lists.usefulinc.com/cgi-bin/mailman/listinfo/phpxmlrpc
>



-- 
THE FR33LANC3R NULL3R & DGT MEMBER

--0016e642d872b46a00046c5bcfa4
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi Jamel,<br><br>The representation which you have posted here is actually =
the raw HTTP response. The blank lines after the content type are absolutel=
y necessary as they separate HTTP headers and HTTP body in HTTP response. I=
f you try to modify these, it will result in erroneous HTTP response which =
in turn could not be understood by libraries and will break.<br>
<br>Thanks n Regards,<br><br><br><div class=3D"gmail_quote">On Wed, May 20,=
 2009 at 6:25 PM, Jamel ESSOUSSI <span dir=3D"ltr">&lt;<a href=3D"mailto:je=
[email protected]">[email protected]</a>&gt;</span> wro=
te:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
Can you help me please to modify in the server side the xml sended,<br>
In fact, I would like to delete the second blank line in the retruned<br>
xml afetr the content-type line.<br>
<br>
HTTP/1.1 200 OK<br>
Date: Wed, 20 May 2009 12:16:44 GMT<br>
Server: Apache/2.2.11 (Unix) PHP/4.4.9 mod_ssl/2.2.11 OpenSSL/0.9.8c<br>
X-Powered-By: PHP/4.4.9<br>
Vary: Accept-Charset<br>
Content-Length: 360<br>
Keep-Alive: timeout=3D2, max=3D100<br>
Connection: Keep-Alive<br>
Content-Type: text/xml; charset=3DUTF-8<br>
<br>
<br>
&lt;?xml version=3D&quot;1.0&quot; encoding=3D&quot;UTF-8&quot;?&gt;<br>
&lt;methodResponse&gt;<br>
&lt;fault&gt;<br>
&lt;value&gt;<br>
&lt;struct&gt;&lt;member&gt;&lt;name&gt;faultCode&lt;/name&gt;<br>
&lt;value&gt;&lt;int&gt;3&lt;/int&gt;&lt;/value&gt;<br>
&lt;/member&gt;<br>
&lt;member&gt;<br>
&lt;name&gt;faultString&lt;/name&gt;<br>
&lt;value&gt;&lt;string&gt;Incorrect parameters passed to method: No method=
<br>
signature matches number of parameters&lt;/string&gt;&lt;/value&gt;<br>
&lt;/member&gt;<br>
&lt;/struct&gt;<br>
&lt;/value&gt;<br>
&lt;/fault&gt;<br>
&lt;/methodResponse&gt;<br>
<br>
Regards<br>
--Jamel<br>
_______________________________________________<br>
phpxmlrpc mailing list<br>
<a href=3D"mailto:[email protected]">[email protected].=
com</a><br>
<a href=3D"http://lists.usefulinc.com/cgi-bin/mailman/listinfo/phpxmlrpc" t=
arget=3D"_blank">http://lists.usefulinc.com/cgi-bin/mailman/listinfo/phpxml=
rpc</a><br>
</blockquote></div><br><br clear=3D"all"><br>-- <br>THE FR33LANC3R NULL3R &=
amp; DGT MEMBER<br>

--0016e642d872b46a00046c5bcfa4--

--===============1494838361==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
phpxmlrpc mailing list
[email protected]
http://lists.usefulinc.com/cgi-bin/mailman/listinfo/phpxmlrpc

--===============1494838361==--