RSI_Don has asked for the wisdom of the Perl Monks concerning the following question:
Here is a sample of the response I am getting back:#! /usr/bin/perl -w #"real" data changed to protect the guilty use strict; use WWW::Curl::Easy; use URI::Escape; my $curl = new WWW::Curl::Easy; my @strings = ("Encrypted String #1", "Encrypted String #2"); foreach my $encrypted (@strings) { my $query_string = "?action=decrypt&string=" . uri_escape($encrypte +d); $curl->setopt(CURLOPT_VERBOSE, 0); $curl->setopt(CURLOPT_HEADER, 0); $curl->setopt(CURLOPT_URL, 'https://www.somedomain.com/somescript.p +hp' . $query_string); # Starts the actual request $curl->perform; print "\n=-----------------------------------------=\n"; }
Any thoughts on getting rid of those pesky headers?HTTP/1.1 200 OK Date: Thu, 29 May 2008 17:25:29 GMT Server: Apache/1.3.34 Ben-SSL/1.57 (Unix) PHP/4.4.2 X-Powered-By: PHP/4.4.2 Set-Cookie: PHPSESSID=716b50edcfb0291d088317c537f629ee; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- +check=0 Pragma: no-cache Transfer-Encoding: chunked Content-Type: text/html string #1 =---------------------------------------------= HTTP/1.1 200 OK Date: Thu, 29 May 2008 17:25:29 GMT Server: Apache/1.3.34 Ben-SSL/1.57 (Unix) PHP/4.4.2 X-Powered-By: PHP/4.4.2 Set-Cookie: PHPSESSID=5a6b5de6dc36e01617a05b7bdbf8f384; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- +check=0 Pragma: no-cache Transfer-Encoding: chunked Content-Type: text/html string #2 =---------------------------------------------=
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cannot suppress Curl headers
by pc88mxer (Vicar) on May 29, 2008 at 18:56 UTC | |
by RSI_Don (Initiate) on May 29, 2008 at 19:20 UTC | |
by pc88mxer (Vicar) on May 29, 2008 at 20:13 UTC | |
by RSI_Don (Initiate) on May 29, 2008 at 20:45 UTC | |
|
Re: Cannot suppress Curl headers
by oko1 (Deacon) on May 29, 2008 at 20:43 UTC | |
|
Re: Cannot suppress Curl headers
by Anonymous Monk on May 30, 2008 at 08:44 UTC | |
by Anonymous Monk on Jun 25, 2008 at 05:15 UTC | |
by Anonymous Monk on Jun 25, 2008 at 05:16 UTC |