Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 21st, 2007, 10:45 AM
Registered User
Join Date: Nov 2006
Location: London, London, United Kingdom.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default cURL is resubmitting the page


I have a strange problem with using cURL on PHP. After cURL submits the data to another URL (ASP page), and the script reaches the bottom of the main condition, the whole page is re-submitted again.

And I know, it is re-submitting, because I have a prevention measure in place "Attempted Duplicate transaction", when the same Ref. comes in again for re-insert into mySQL database.

Has anyone come across a similar problem ?

I have been trying to resolve this since last 2 hrs, and can't get any clue.

This is the general setup of my cURL call.

$ch = curl_init();
$callURL = "http://the-address-to-send-data" ;

curl_setopt ($ch, CURLOPT_HEADER, false);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt ($ch, CURLOPT_URL, "$callURL");

// Make the request
$TransASPresponse = curl_exec($ch);

// Close the curl session
curl_close ($ch);

Any ideas on why could this be happening ?

Reply With Quote
  #2 (permalink)  
Old September 23rd, 2008, 04:25 PM
Registered User
Join Date: Sep 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

I am having the same problem when submitting a credit card transaction to Authorize.net using cURL. (Also as a side note, we're using CodeIgniter as a framework) Anyone out there with any ideas? Would be greatly appreciated...

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
why isn't CURL logging me in ? jjk2 Beginning PHP 1 October 5th, 2008 07:29 PM
resubmitting how to display message box tsuersrb Excel VBA 1 March 10th, 2008 07:06 AM
curl spbharti Pro PHP 1 April 20th, 2006 02:34 PM
PHP CURL set root domain mfoozzz PHP How-To 0 April 6th, 2006 04:26 PM

All times are GMT -4. The time now is 01:50 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.