cURL

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1356 Curl request to remote server issue

From: Daniel Stenberg <bagder_at_users.sf.net>
Date: Tue, 15 Apr 2014 22:15:24 +0000

- **status**: open --> pending-invalid

---
** [bugs:#1356] Curl request to remote server issue**
**Status:** pending-invalid
**Labels:** http 
**Created:** Tue Apr 08, 2014 06:04 AM UTC by Jaffar Hussain
**Last Updated:** Tue Apr 08, 2014 09:09 AM UTC
**Owner:** Daniel Stenberg
We are facing issues while using curl to get data from third party server.
This is working fine in curl version 7.24.0 but it is not working in curl version 7.29.0
We are using this request:
$post_fields = 'public_key=dummy&key=dummy';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $api_url . '/key/validate?' . $post_fields);
curl_setopt($ch, CURLOPT_FAILONERROR, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
$response = curl_exec($ch);
$info     = curl_getinfo($ch);
curl_close($ch);
This request is working fine and we get correct response under following environment:
OS: windows 7
Wamp: 2.2
PHP: 5.3.13
Apache: 2.2.12
We are receiving this response: 
{"validated":true,"user_count":"1","licensed_user_count":"18","validated_users":true}
But response data has been corrupted under following environment:
OS: windows 8
Wamp: 2.4.4
PHP: 5.4.12
Apache: 2.4.4
Response is corrupted and we are receiving this response:
_{"validated":true,"user_count":"1","licensed_user_count":"18","validated_users":true
Trailing slash of json data has been truncated and random character has been attached at start of response.
Can you please advise what might changed in new version causing this issue?
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2014-04-16

These mail archives are generated by hypermail.

donate! Page updated March 21, 2014.
web site info

File upload with ASP.NET