cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-1175939 ] PUT request consumes 100% CPU indefinitely

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 05 Apr 2005 00:21:40 -0700

Bugs item #1175939, was opened at 2005-04-03 21:26
Message generated for change (Settings changed) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1175939&group_id=976

Category: https
Group: hang
>Status: Closed
Resolution: Invalid
Priority: 5
Submitted By: frEEk (freek_zero)
Assigned to: Daniel Stenberg (bagder)
Summary: PUT request consumes 100% CPU indefinitely

Initial Comment:
This behaviour began after we updated our apache & php
(and possibly others) to the standard Debian (sarge)
versions. I eventually realized it was a PUT instead of
a POST transaction, but I do not beleive this should
cause the server to go nuts. This problem was
discovered when using Net/Curl via Payment/Process with
authorize.net. It is possible that it may be triggered
by bad behaviour on authorizenet's server for all I know.

Below is a code snippet that can be used to replicate
the problem.

<?php
ini_set ( "max_execution_time", "15");

$_url =
'https://secure.authorize.net/gateway/transact.dll';
$params =
'x_delim_data=TRUE&x_relay=FALSE&x_email_customer=FALSE&x_test_request=TRUE&x_currency_code=USD&x_version=3.1&x_card_num=4007000000027&x_card_code=123&x_exp_date=3%2F2006&x_login=test1234&x_password=test1234&x_type=AUTH_ONLY&x_cust_id=hydra&x_amount=1.00&x_first_name=sdfg&x_zip=234&x_address=aadfg&x_city=asdfg&x_state=adfg&x_country=Canada&x_email=test%40domain.tld&x_customer_ip=127.0.0.1&x_method=CC';

$ch = curl_init();
curl_setopt($ch, CURLOPT_PUT,1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$params);
curl_setopt($ch, CURLOPT_URL,$_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$result=curl_exec ($ch);
echo($result);
?>

System details:
Debian (sarge) , fully up to date.
apache-ssl 1.3.33-4
php4 4.3.10-9
php4-curl 4.3.10-9
libcurl3 7.13.1-2

$ curl -V
curl 7.13.1 (i386-pc-linux-gnu) libcurl/7.13.1
OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13
Protocols: ftp gopher telnet dict ldap http file https ftps
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

Tried with libcurl2 and with homebuilt php4 install
also, to no avail. Not really sure what other
details/info are needed, so please email me with any
additional information required. Thank you.

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2005-04-04 00:52

Message:
Logged In: YES
user_id=1110

Sorry, but you are talking about a problem with the PHP/CURL
binding, and that is made and maintained by the PHP project
and team. I advice you to adress them first.

If you can repeat this problem with a pure C libcurl
program, then I am interested.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1175939&group_id=976
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-tracker
Received on 2005-04-05

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET