The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
USN-726-1: curl vulnerability iBot Security Advisories (RSS) 0 03-03-2009 04:20 PM
needs some curl help phpfreak Shell Programming and Scripting 1 12-04-2008 06:57 AM
use of curl jayawantsandeep Shell Programming and Scripting 0 06-18-2008 10:53 AM
use of curl jayawantsandeep AIX 0 06-16-2008 04:08 AM
curl Euler04 Shell Programming and Scripting 6 07-27-2005 03:16 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 08-16-2009
tatebn tatebn is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 7
cURL and cgi

I have a CGI application done in c++ that communicates with PayPal. I've had an issue where the application dies when I try to perform a cURL operation. Upon further inspection it seems that I can run cURL examples from the command line.

Upon even further inspection it seems that I can run cURL in the CGI if I don't set the URL option. Any other option seems to be ok. Of course this fails with an error from cURL saying that the URL was not set. But at least I get to the point of an error.

If I set the URL option it either displays a blank white screen at perform, assuming I print the necessary headers, or it fails with premature end of script headers.

So I'm not a unix guru, and I'm kind of in over my head here, but it is what it is. I'm thinking maybe there's a port blocked that's used by the cgi for outgoing requests that isn't used for the command line. I'm thinking maybe it's a permissions thing. The examples were run as root, and I set the .cgi file to be owned by root, but maybe that doesn't count.

I could really use some direction here. And keep in mind my unix knowledge is not phenominal. I can get around alright, but I need a little help.

I'm running red hat and apache.

Thanks,
Brandon
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:59 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0