Passing Creadentials and parameters through http headers

2008-05-07 Thread Prabu Ayyappan
Hi all, I want to Pass the credentials and the Post parameters in a request and need to get the response content. I tried with the following approach. 1) Credentials are getting passed correctly however am not getting the parameter passed. 2) If am passing the credentials in the url it is

Re: Passing Creadentials and parameters through http headers

2008-05-07 Thread yitzle
Take a look at WWW::Mechanize, specifically the submit_form() function. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

cgi script to capture http headers

2006-09-28 Thread Kaushal Shriyan
Hi ALL I have a issue when i use script (test.cgi) #!/bin/bash echo Content-type: text/plain; echo set I get all the http headers populated with the values correctly but when I use the below script (test-cgi) #!/bin/sh # disable filename globbing set -f echo Content-type: text/plain echo

Re: cgi script to capture http headers

2006-09-28 Thread Beginner
Hi On 28 Sep 2006 at 17:21, Kaushal Shriyan wrote: Hi ALL I have a issue when i use script (test.cgi) #!/bin/bash echo Content-type: text/plain; echo set I get all the http headers populated with the values correctly but when I use the below script (test-cgi) #!/bin/sh

Re: About unoffical HTTP headers

2005-04-26 Thread Wiggins d'Anconia
the unofficial HTTP header value like x: y. I examine the %ENV hash, and found nothing but some standard HTTP headers like Accept, User-Agent, etc.. And I check the CGI.pm module too, seems there is no method to get the unofficial HTTP headers. This is going to depend on the web server

Re: About unoffical HTTP headers

2005-04-26 Thread Shu Cao
Hi, Wiggins d'Anconia: This is going to depend on the web server, as it is the software parsing the HTTP request, it just passes execution to the CGI and sets up the environment before hand. So it is up to the web server software to set in the environment the extra headers, you should check

Re: About unoffical HTTP headers

2005-04-26 Thread Shu Cao
Hi, Charles K. Clarkson: This is the first I have heard there were unofficial HTTP headers and you have me curious. Why would you want to see these? Are you writing a low level server script? We just use HTTP protocol transferring our customized messages. The client side is implemented

Re: HTTP headers

2003-01-16 Thread William McKee
Hi Philip, I looked at the script. How are you running it? From the command line or from a web server? It works fine on the comand line and from the server for me. What server are you using to display it? I'm using Apache. If you are running it from the server you may need to include -nph = 1

Re: HTTP headers

2003-01-16 Thread Philip Pawley
with a virtual include. Is that right? Actually, this brings me to my reason for messing with HTTP headers: I want to create Expires: HTTP headers for the server response when it is dishing out image files (also for javascript and css files). Server-side includes would be no use for this anyway. How

Re: HTTP headers

2003-01-15 Thread Octavian Rasnita
, January 14, 2003 11:05 PM Subject: HTTP headers Can I add an HTTP header to my web-site's server's response with perl? (It isn't my server). The server is running perl 5.6.1. If I can get it to work, I want to start using Expires: headers. I've no idea whether this makes any sense but I tried

HTTP headers

2003-01-14 Thread Philip Pawley
by SSI from my html pages. The other functionality of the script works fine. I added these lines culled from the HTTP::Headers documentation (I added the my):- require HTTP::Headers; my $h = HTTP::Headers-new; $h-header('Content-Type' = 'text/plain'); The page is still served

HTTP headers

2002-07-30 Thread Octavian Rasnita
Hi all, I want to print a zip file to the browser but I want to make the browser think that it gets the zip file directly, not through a CGI script. Why? Because when clicking on a link for downloading a zip file directly, the download managers are triggered, and the page visitors can download

RE: HTTP headers

2002-07-30 Thread Bob Showalter
-Original Message- From: Octavian Rasnita [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 30, 2002 1:13 PM To: [EMAIL PROTECTED] Subject: HTTP headers Hi all, I want to print a zip file to the browser but I want to make the browser think that it gets the zip file directly

Re: HTTP headers

2002-07-30 Thread Wiggins d'Anconia
My suspicion is that IE is looking ahead of time at the extension of the file requested and doing some guess work (*I could be wrong*) but in this case your only real option would be to rename your CGI script, which is a beautiful thing about the web/unix/etc, you can do this! You might try

Re: http headers

2002-04-26 Thread Felix Geerinckx
on Fri, 26 Apr 2002 04:00:06 GMT, [EMAIL PROTECTED] (Conan chai) wrote: more details on what i'm doing: i'm doing a simple proxy server. Randal Schwartz has done a proxy server in one of his Webtechniques columns. Maybe you can get some ideas from it. See

Re: http headers

2002-04-26 Thread Felix Geerinckx
on Fri, 26 Apr 2002 04:00:06 GMT, [EMAIL PROTECTED] (Conan chai) wrote: more details on what i'm doing: i'm doing a simple proxy server. Randal Schwartz has done a proxy server in one of his Webtechniques columns. Maybe you can get some ideas from it. See

Re: http headers

2002-04-25 Thread Conan Chai
hi again, i was actually looking for modules that split the following into name/value pairs. the following is a typical request header from a web browser(eg.IE/netscape). more details on what i'm doing: i'm doing a simple proxy server. the web browser sends the request, the server uses sysread()

Re: http headers

2002-04-25 Thread Conan Chai
hi again, i was actually looking for modules that split the following into name/value pairs. the following is a typical request header from a web browser(eg.IE/netscape). more details on what i'm doing: i'm doing a simple proxy server. the web browser sends the request, the server uses sysread()

Re: http headers

2002-04-24 Thread John Brooking
Most recent editions of Perl come with the CGI module, which is what you want. Type perldoc CGI at your friendly neighborhood command prompt. The O'Reilly book CGI Programming with Perl has a good overview, as do no doubt countless other books. The basic steps are: use CGI; my $cgi = new CGI;

Re: http headers

2002-04-24 Thread David vd Geer Inhuur tbv IPlib
Hi There, Here is another one I always use : sub parse_form { read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); if (length($buffer) 5) { $head = $ENV{QUERY_STRING}; } @pairs = split(/\?/, $head); # split vars using ? as delimitor foreach $pair(@pairs) {

RE: http headers

2002-04-24 Thread Joel Hughes
Conan, HTTP::Headers I think is what your after http://search.cpan.org/search?mode=modulequery=http regards Joel -Original Message- From: Conan Chai [mailto:[EMAIL PROTECTED]] Sent: 24 April 2002 05:08 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: http headers hi

Re: http headers

2002-04-24 Thread John Brooking
Most recent editions of Perl come with the CGI module, which is what you want. Type perldoc CGI at your friendly neighborhood command prompt. The O'Reilly book CGI Programming with Perl has a good overview, as do no doubt countless other books. The basic steps are: use CGI; my $cgi = new CGI;

Re: http headers

2002-04-24 Thread David vd Geer Inhuur tbv IPlib
Hi There, Here is another one I always use : sub parse_form { read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); if (length($buffer) 5) { $head = $ENV{QUERY_STRING}; } @pairs = split(/\?/, $head); # split vars using ? as delimitor foreach $pair(@pairs) {

http headers

2002-04-23 Thread Conan Chai
hi, are there any perl modules that splits the http request headers into name/value pairs? Conan It Will Come To Us !!! [EMAIL PROTECTED]

RE: http headers

2002-04-23 Thread Timothy Johnson
I don't use Perl for web stuff myself, but just from hearing other people talk, you might want to look into the LWP modules and CGI. -Original Message- From: Conan Chai To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: 4/23/02 9:07 PM Subject: http headers hi, are there any perl modules

http headers

2002-04-23 Thread Conan Chai
hi, are there any perl modules that splits the http request headers into name/value pairs? Conan It Will Come To Us !!! [EMAIL PROTECTED]

RE: http headers

2002-04-23 Thread Timothy Johnson
I don't use Perl for web stuff myself, but just from hearing other people talk, you might want to look into the LWP modules and CGI. -Original Message- From: Conan Chai To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: 4/23/02 9:07 PM Subject: http headers hi, are there any perl modules

Newbie _ HTTP HEADERS

2001-11-23 Thread Mark Smith
I have just started PERL..and am learning to use environmental variables etc.all works fine at school.but at home no luck. I am running WIN2K IIS..have activeperl 5.6.1..here is the error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers

RE: Newbie _ HTTP HEADERS

2001-11-23 Thread John Edwards
should be table\/table I'd suggest using CGI.pm. This takes the hard work out of writing cgi pages. HTH John -Original Message- From: Mark Smith [mailto:[EMAIL PROTECTED]] Sent: 23 November 2001 05:46 To: [EMAIL PROTECTED] Subject: Newbie _ HTTP HEADERS I have just started PERL

Sending HTTP Headers

2001-10-24 Thread Brent Jones
to a webserver is the correct HTTP headers to initiate a HTTP connection. Heres my socket connection: $socket = IO::Socket::INET-new(PeerAddr = $remote_host, PeerPort = $remote_port, Proto = tcp, Type = SOCK_STREAM) or die socket failed\n; I assume thats capable of working

Re: Sending HTTP Headers

2001-10-24 Thread walter valenti
that block to be able to post to a webserver is the correct HTTP headers to initiate a HTTP connection. Heres my socket connection: $socket = IO::Socket::INET-new(PeerAddr = $remote_host, PeerPort = $remote_port, Proto = tcp, Type = SOCK_STREAM) or die socket

Re: Sending HTTP Headers

2001-10-24 Thread brian d foy
In article 006901c15c80$e66a4ce0$070a@skullbox, [EMAIL PROTECTED] (Brent Jones) wrote: I was just wondering how one would go about sending an HTTP request header to a webserver. use LWP::UserAgent; use HTTP::Request; http://search.cpan.org/search?dist=libwww-perl

HTTP headers/Mime types

2001-06-26 Thread Gary Stainburn
Hi all, I've written a perl script that creates PDF files containing our sales invoices and it works fine writing the PDF's to disk. (Actually it creates a postscript file and runs ps2pdf). I now want to embed this inside a CGI so people can view them on-line and have their browser fire off