In article <1007020948.30660.4.camel@pingu>, Edd Dumbill
<[EMAIL PROTECTED]> writes
>I can't reproduce this simply by creating a return payload with newlines
>in it, things work OK.  Can you capture and send over the full HTTP
>response from blogger, so I can see the headers and everything please?
>
>On Mon, 2001-11-26 at 17:36, Julian Bond wrote:
>> Where I've got control over both ends, I'm using nl2br() to insert <br
>> /> before CRLF which sorts it, but I don't think I should have to. And
>> then of course there's the problem of whether it's LFLF or CRLFCRLF but
>> I've tested this both on a Win platform and on *nix with the same
>> results.

Here's the results with the 2 (3?) newlines.

<?xml version="1.0"?>
<methodCall>
<methodName>blogger.getPost</methodName>
<params>
<param>
<value><string>737B19630288858935803B9749822CEBF274DD7D</string></value>
</param>
<param>
<value><string>7414222</string></value>
</param>
<param>
<value><string>jbond23</string></value>
</param>
<param>
<value><string>*****</string></value>
</param>
</params>
</methodCall>

---GOT---
HTTP/1.0 200 
Date: Thu, 29 Nov 2001 10:10:14 GMT
Server: Apache/1.3.19 (Unix)  (Red-Hat/Linux) mod_jk
Content-Length: 473
Content-Type: text/xml
Age: 1
Via: HTTP/1.0 ntl_site (Traffic-Server/4.0.15-M [cMsSf ])

<?xml version="1.0" encoding="ISO-8859-1"?><methodResponse><params><para
m><value><struct><member><name>userid</name><value>311127</value></membe
r><member><name>dateCreated</name><value><dateTime.iso8601>20011126T09:1
7:52</dateTime.iso8601></value></member><member><name>content</name><val
ue>hello world. 2 newlines follow


and there they were.</value></member><member><name>postid</name><value>7
414222</value></member></struct></value></param></params></methodRespons
e>
---END---

Fault: Code: 2 Reason 'Invalid return payload: enabling debugging to
examine incoming payload'

And without.

<?xml version="1.0"?>
<methodCall>
<methodName>blogger.getPost</methodName>
<params>
<param>
<value><string>737B19630288858935803B9749822CEBF274DD7D</string></value>
</param>
<param>
<value><string>7414222</string></value>
</param>
<param>
<value><string>jbond23</string></value>
</param>
<param>
<value><string>*****</string></value>
</param>
</params>
</methodCall>

---GOT---
HTTP/1.0 200 
Date: Thu, 29 Nov 2001 10:14:56 GMT
Server: Apache/1.3.19 (Unix)  (Red-Hat/Linux) mod_jk
Content-Length: 472
Content-Type: text/xml
Age: 0
Via: HTTP/1.0 ntl_site (Traffic-Server/4.0.15-M [cMsSf ])

<?xml version="1.0" encoding="ISO-8859-1"?><methodResponse><params><para
m><value><struct><member><name>userid</name><value>311127</value></membe
r><member><name>dateCreated</name><value><dateTime.iso8601>20011126T09:1
7:52</dateTime.iso8601></value></member><member><name>content</name><val
ue>hello world. 0 newline follows
and there they weren't.</value></member><member><name>postid</name><valu
e>7414222</value></member></struct></value></param></params></methodResp
onse>
---END---

---EVALING---[291 chars]---
new xmlrpcval(array('userid' => new xmlrpcval("311127",
'string'),'dateCreated' => new xmlrpcval("20011126T09:17:52",
'dateTime.iso8601'),'content' => new xmlrpcval("hello world. 0 newline
follows
and there they weren't.", 'string'),'postid' => new xmlrpcval("7414222",
'string')), 'struct');
---END---
Success
------------------------------------------------------------------------
--------
I got this value back

<methodResponse>
<params>
<param>
<value><struct>
<member><name>userid</name>
<value><string>311127</string></value>
</member>
<member><name>dateCreated</name>
<value><dateTime.iso8601>20011126T09:17:52</dateTime.iso8601></value>
</member>
<member><name>content</name>
<value><string>hello world. 0 newline follows
and there they weren't.</string></value>
</member>
<member><name>postid</name>
<value><string>7414222</string></value>
</member>
</struct></value>
</param>
</params>
</methodResponse>



-- 
Julian Bond    email: [EMAIL PROTECTED]
CV/Resume:         http://www.voidstar.com/cv/
WebLog:               http://www.voidstar.com/
M: +44 (0)77 5907 2173  T: +44 (0)192 0412 433
ICQ:33679568 tag:So many words, so little time

--
For information about how to subscribe and unsubscribe from this list
visit http://xmlrpc.usefulinc.com/list.html

Reply via email to