cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Long Pretransfer Time

From: Louise Eggleton <louisen_at_uncommonlogic.ca>
Date: Mon, 18 Aug 2008 12:13:10 -0400

Hello

I have been trying to debug timeout/performance issues relating to authorizing credit cards with Authorize.net and via curl/php. Using curl_getinfo I have determined that the "pretransfer_time" is taking a long time. See below for output:

  ["url"]=>
  string(50) "https://secure.authorize.net/gateway/transact.dll/"
  ["content_type"]=>
  string(9) "text/html"
  ["http_code"]=>
  int(200)
  ["header_size"]=>
  int(237)
  ["request_size"]=>
  int(540)
  ["filetime"]=>
  int(-1)
  ["ssl_verify_result"]=>
  int(20)
  ["redirect_count"]=>
  int(0)
  ["total_time"]=>
  float(27.891)
  ["namelookup_time"]=>
  float(0)
  ["connect_time"]=>
  float(0.078)
  ["pretransfer_time"]=>
  float(26.672)
  ["size_upload"]=>
  float(0)
  ["size_download"]=>
  float(232)
  ["speed_download"]=>
  float(8)
  ["speed_upload"]=>
  float(0)
  ["download_content_length"]=>
  float(232)
  ["upload_content_length"]=>
  float(0)
  ["starttransfer_time"]=>
  float(27.891)
  ["redirect_time"]=>
  float(0)

Could someone explain what pretransfer time is and why it might take so long?

Louise

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2008-08-18