From 033935c19406c8468ed75fdd15a3a532f4e25319 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Tue, 12 Oct 2010 20:29:04 -0700 Subject: cleanup to ensure protocol version is passed properly. We will need it if/when any incompatible protocol changes are introduced. --- include/poller.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'include/poller.php') diff --git a/include/poller.php b/include/poller.php index ff141484b..bf2803b63 100644 --- a/include/poller.php +++ b/include/poller.php @@ -94,12 +94,15 @@ if(intval($contact['duplex']) && $contact['issued-id']) $idtosend = '1:' . $orig_id; - $url = $contact['poll'] . '?dfrn_id=' . $idtosend . '&type=data&last_update=' . $last_update ; + $url = $contact['poll'] . '?dfrn_id=' . $idtosend + . '&dfrn_version=' . DFRN_PROTOCOL_VERSION + . '&type=data&last_update=' . $last_update ; + $xml = fetch_url($url); if($debugging) { - echo "URL: " . $url . "\r\n"; - echo "XML: " . $xml . "\r\n"; + echo "URL: " . $url . "\n"; + echo "XML: " . $xml . "\n"; } if(! $xml) { @@ -154,7 +157,7 @@ } $postvars['dfrn_id'] = $idtosend; - + $postvars['dfrn_version'] = DFRN_PROTOCOL_VERSION; $xml = post_url($contact['poll'],$postvars); -- cgit v1.2.3