Sponsored Content
Full Discussion: cURL and cgi
Top Forums Programming cURL and cgi Post 302344759 by Corona688 on Monday 17th of August 2009 01:16:20 PM
Old 08-17-2009
compile it with -ggdb and use the gdb commandline debugging tool to run it. There is some information on gdb here.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

cgi

I am having trouble running my perl cgi on the Internet. After i put the cgi file into the public_html directory and try to browse it on the internet, it returns me the exact content of the cgi file. Is the file permission 755 for the cgi file correct? My path to perl is something like ... (2 Replies)
Discussion started by: vince
2 Replies

2. Shell Programming and Scripting

CGI passing arrays/hashes to another CGI script

If I have a Perl CGI script (script01), which fills an array(s) with information and outputs a HTML page with a link to another CGI page (script02); is there anyway to pass the array(s) from "script01" to "script02" when the page visitor clicks the link? Hope that makes sense! :) (2 Replies)
Discussion started by: WIntellect
2 Replies

3. Solaris

apache ErrorDocument 400 /cgi-bin/400.cgi

Hi All, Sorry if the question is trivial for you but, I am new to Apache (2.0.63) and am trying to figure out how to display my 400.cgi. Here is what I have in httpd.conf servername testing DocumentRoot "/usr/local/apache2/htdocs" ErrorDocument 400 /cgi-bin/badrequest-400.cgi Here is... (0 Replies)
Discussion started by: afadaghi
0 Replies

4. Web Development

Need help with cgi and so on

Hello all, i`m new here and new in programming with cgi. But i need it for my running project. I`ve googled half a week with no success. All i need is to run an .sh-file via cgi. My file is stored in /home/bots/ but if i try #!/bin/sh echo 'Content-type: text/html' echo echo... (5 Replies)
Discussion started by: cryp0r
5 Replies

5. Shell Programming and Scripting

CGI shell script curl reponse problem

Hi, I am running a bash shell script for some simple web server CGI, the script runs as expected from the browser except the following: curl --silent --max-time 10 --output /dev/null --write-out %{http_code} http://server:port/filename This line outputs 404 when i execute the script... (0 Replies)
Discussion started by: Moxy
0 Replies

6. Web Development

problem with exporting vairable from one perl cgi to another perl cgi script while redirecting.

Can anyone tell me how to export a variable from one perl CGI script to another perl cgi script when using a redirect. Upon running the login.pl the user is prompted to enter user name and password. Upon entering the correct credentials (admin/admin) the user is redirected to welcome page. My... (3 Replies)
Discussion started by: Arun_Linux
3 Replies

7. Shell Programming and Scripting

Perl cgi pages out of cgi-bin folder in WINDOWS

Hi team, I have a typical problem with cgi pages in apache webserver in WINDOWS I am able to execute(display) the pages that are saved in cgi-bin folder. But I am not able to execute the pages stored in htdocs or other folder other than cgi-bin folder. Could anyone please let me know how... (1 Reply)
Discussion started by: scriptscript
1 Replies

8. Shell Programming and Scripting

Perl CGI : unable to download the excel sheet from perl cgi page

Hi All, I have written an cgi perl script that displays an image(Excel image) and when clicked on that Image I need to download a excel sheet. I made sure that excel sheet exists in the folder with the given name but still I am not able to download the sheet. print "<center><table... (2 Replies)
Discussion started by: scriptscript
2 Replies

9. Shell Programming and Scripting

CGI Perl : while loop in CGI perl

Hi Team, I am trying to connect to database(succeeded ) and print the records on the browser using while loop. But the elements of array are not displayed instead while loop is displayed directly. Instead of the below I can embed html statements in print but I am looking for the below style as I... (1 Reply)
Discussion started by: scriptscript
1 Replies

10. Shell Programming and Scripting

Cgi script please help!

ok so for the project i had to log in amazon node to submitted and create a captcha using cgi scripts its for a unix project this is my amazon node address ss. but first i have to create a .ht access to set the master password. can someone please help me??? in public_html, create a file... (1 Reply)
Discussion started by: jr44
1 Replies
CURL_SHARE_SETOPT(3)							 1						      CURL_SHARE_SETOPT(3)

curl_share_setopt - Set an option for a cURL share handle.

SYNOPSIS
bool curl_share_setopt (resource $sh, int $option, string $value) DESCRIPTION
Sets an option on the given cURL share handle. PARAMETERS
o $sh - A cURL share handle returned by curl_share_init(3). o $option - +------------------+--------------------------------------+---+ | Option | | | | | | | | | Description | | | | | | +------------------+--------------------------------------+---+ | | | | | CURLSHOPT_SHARE | | | | | | | | | Specifies a type of data that | | | | should be shared. | | | | | | | | | | |CURLSHOPT_UNSHARE | | | | | | | | | Specifies a type of data that will | | | | be no longer shared. | | | | | | +------------------+--------------------------------------+---+ o $value - +---------------------------+--------------------------------------+---+ | Value | | | | | | | | | Description | | | | | | +---------------------------+--------------------------------------+---+ | | | | | CURL_LOCK_DATA_COOKIE | | | | | | | | | Shares cookie data. | | | | | | | | | | | CURL_LOCK_DATA_DNS | | | | | | | | | Shares DNS cache. Note that when | | | | you use cURL multi handles, all han- | | | | dles added to the same multi handle | | | | will share DNS cache by default. | | | | | | | | | | |CURL_LOCK_DATA_SSL_SESSION | | | | | | | | | Shares SSL session IDs, reducing | | | | the time spent on the SSL handshake | | | | when reconnecting to the same | | | | server. Note that SSL session IDs | | | | are reused within the same handle by | | | | default. | | | | | | +---------------------------+--------------------------------------+---+ RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 curl_share_setopt(3) example This example will create a cURL share handle, add two cURL handles to it, and then run them with cookie data sharing. <?php // Create cURL share handle and set it to share cookie data $sh = curl_share_init(); curl_share_setopt($sh, CURLSHOPT_SHARE, CURL_LOCK_DATA_COOKIE); // Initialize the first cURL handle and assign the share handle to it $ch1 = curl_init("http://example.com/"); curl_setopt($ch1, CURLOPT_SHARE, $sh); // Execute the first cURL handle curl_exec($ch1); // Initialize the second cURL handle and assign the share handle to it $ch2 = curl_init("http://php.net/"); curl_setopt($ch2, CURLOPT_SHARE, $sh); // Execute the second cURL handle // all cookies from $ch1 handle are shared with $ch2 handle curl_exec($ch2); // Close the cURL share handle curl_share_close($sh); // Close the cURL handles curl_close($ch1); curl_close($ch2); ?> PHP Documentation Group CURL_SHARE_SETOPT(3)
All times are GMT -4. The time now is 01:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy