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/

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 w

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-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) { ($name

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-23 Thread Joel Hughes
Conan, HTTP::Headers I think is what your after http://search.cpan.org/search?mode=module&query=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, are t

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 mo

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: Newbie _ HTTP HEADERS

2001-11-23 Thread John Edwards
ld be <\/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..an

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 heade

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://sear

Re: Sending HTTP Headers

2001-10-24 Thread walter valenti
; All I need to make 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, >

Sending HTTP Headers

2001-10-24 Thread Brent Jones
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\