Re: HTTP Tiny Range Header

2012-05-28 Thread raphael()
On Mon, May 28, 2012 at 8:37 PM, Rob Dixon wrote: > On 28/05/2012 15:15, raphael() wrote: > > > > I am trying to use HTTP::Tiny module to download file with RANGE > attribute. > > However I cannot accomplish it. > > > > In WWW::Mechanize the code I use is simple > > my $file_obj = $ua->get( $url,

Re: HTTP Tiny Range Header

2012-05-28 Thread Rob Dixon
On 28/05/2012 15:15, raphael() wrote: > > I am trying to use HTTP::Tiny module to download file with RANGE attribute. > However I cannot accomplish it. > > In WWW::Mechanize the code I use is simple > my $file_obj = $ua->get( $url, 'Range' => sprintf("bytes=%s-%s", > $file_size, $content_length

Re: HTTP Redirects

2008-09-18 Thread Nigel Peck
Rob Dixon wrote: Hmm. Well it would have helped if you had said that your script was running under mod_perl rather than perl. It's not running under mod_perl. Cheers, Nigel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: HTTP Redirects

2008-09-16 Thread Rob Dixon
Nigel Peck wrote: > Mr. Shawn H. Corey wrote: >> # Get the computer to tell you what's happening >> ... > > Rob Dixon wrote: >> The only way to fully understand what CGI does is to read its code. Perl >> modules >> ... > > Thanks both for your responses. It turns out I need to send the full URL

Re: HTTP Redirects

2008-09-16 Thread Nigel Peck
Mr. Shawn H. Corey wrote: # Get the computer to tell you what's happening ... Rob Dixon wrote: The only way to fully understand what CGI does is to read its code. Perl modules ... Thanks both for your responses. It turns out I need to send the full URL whereas I was sending a relative URL w

Re: HTTP Redirects

2008-09-16 Thread Mr. Shawn H. Corey
On Tue, 2008-09-16 at 18:37 +0100, Nigel Peck wrote: > Hi all, > > I'm missing something here with regards http redirects. > > I'm trying to have my script redirect to itself through the browser so that > the URL changes in the browser. > > When I send the headers myself: > > print 'Loca

Re: HTTP Redirects

2008-09-16 Thread Rob Dixon
Nigel Peck wrote: > > I'm missing something here with regards http redirects. > > I'm trying to have my script redirect to itself through the browser so that > the URL changes in the browser. > > When I send the headers myself: > > print 'Location: ' . $_[0] . "\n"; > print 'Connec

Re: HTTP Filtering and Threads...

2007-09-15 Thread Mumia W.
AIL PROTECTED] To: Dan <[EMAIL PROTECTED]>, beginners@perl.org Subject: Re: HTTP Filtering and Threads... In-Reply-To: <[EMAIL PROTECTED]> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <[EMAIL PROTECTED]>

Re: HTTP Filtering and Threads...

2007-09-14 Thread Somu
you can store all the data in an array first and then apply regex on all lines, if the response come in lines. Else, get all the data in a scalar and apply the regex. I think this may get you the silva my ($name,$type,$mname) =~ /name=(.*) type=(.*) value=(.*)/i; i'm not sure though how we may ca

Re: HTTP Post using IO::Socket

2007-02-13 Thread David Moreno Garza
On Mon, 2007-02-12 at 18:30 -0500, Sumit Shah wrote: > All, > > I would appreciate if someone could tell me how to do an HTTP Post using > IO::Socket. I cannot use LWP. I have to manage it with plain Sockets. > > I am new to this and any help would be appreciated. This will save your ass, just

Re: HTTP Post using IO::Socket

2007-02-13 Thread Sumit Shah
Thanks Zentara. I have understood it. I am doing something similar. I need to invoke a SOAP service using HTTP POST. I have gotten to a point where it invokes the SOAP service but apparently my XML is not well formed or I am not sending the right info in the header. For example I am not sending

Re: HTTP Post using IO::Socket

2007-02-13 Thread Sumit Shah
Hello, Thanks for the replies. I am using Perl provided by Oracle's Application Server. I am bound to it. LWP does not come standard with it. LWP requires some pre-req libraries/packages which I am unable to install on the platforms we are using. I felt may be I could achieve it with plain s

Re: HTTP Post using IO::Socket

2007-02-12 Thread Jeff Pang
> >I would appreciate if someone could tell me how to do an HTTP Post using >IO::Socket. I cannot use LWP. I have to manage it with plain Sockets. > Post with LWP::UserAgent and HTTP::Request is very convenient since both the modules are current Perl's builtin modules.Please take a look at "per

Re: HTTP Post using IO::Socket

2007-02-12 Thread Randal L. Schwartz
> "Sumit" == Sumit Shah <[EMAIL PROTECTED]> writes: Sumit> I would appreciate if someone could tell me how to do an HTTP Post Sumit> using IO::Socket. I cannot use LWP. I have to manage it with plain Sumit> Sockets. You can *always* use LWP in any sane Perl setup, especially considering that

Re: http to https

2006-10-13 Thread Mumia W.
On 10/13/2006 11:50 AM, Andrew Kennard wrote: Hello all We have recently moved to a new hosting company that also provides us with an SSL service. The scenario: I have a form located at url http://www.mydomain.co.uk/myfolder/page1.htm which on submission, uses a sub routine that opens the f

Re: HTTP Posting in Perl

2005-11-25 Thread Eric Pretorious
On Fri, 2005-11-25 at 17:56 +0530, Mazhar wrote: > Dear Folks, > I have a requirement where in i have to post a message to a Mail > Server with all the subject, To address everything. But the message sent > should be posted on port 80. Please suggest me something so that i can work > it o

Re: HTTP Posting in Perl

2005-11-25 Thread Chris Devers
On Fri, 25 Nov 2005, Mazhar wrote: > I have a requirement where in i have to post a message to a > Mail Server with all the subject, To address everything. But the > message sent should be posted on port 80. Please suggest me something > so that i can work it out Okay. http://search

RE: HTTP

2004-05-27 Thread Bob Showalter
Ramprasad A Padmanabhan wrote: > Are your sure you want to write your own in perl, then you would have > to use LWP or similar modules from CPAN > > But If you want straight download , why dont you just use tools like > "lynx -source" or "wget" or "snarf" Or lwp-download -- To unsubscribe, e-ma

Re: HTTP

2004-05-26 Thread Ramprasad A Padmanabhan
Are your sure you want to write your own in perl, then you would have to use LWP or similar modules from CPAN But If you want straight download , why dont you just use tools like "lynx -source" or "wget" or "snarf" Bye Ram On Thu, 2004-05-27 at 01:23, Esposito, Anthony wrote: > Any help for a sc

Re: HTTP

2004-05-26 Thread Wiggins d Anconia
> > Any help for a script downloading files from a http site? > http://search.cpan.org/~gaas/libwww-perl-5.79/lib/LWP.pm http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: http paths in @INC

2003-08-07 Thread Gupta, Sharad
Yep, the "require" doc says that clearly. I should have read it first before posting. Just got things working ;) -Sharad -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 6:00 PM To: Gupta, Sharad; [EMAIL PROTECTED] Subject

Re: http paths in @INC

2003-08-06 Thread Bob Showalter
Gupta, Sharad wrote: > Hi All, > > Can i have something like "http:://Somepath" > > in @INC. No. It is possible to write code allowing simple modules to be fetched via HTTP and compiled. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: http authentication via perl CGI script?

2003-07-15 Thread Dan Muey
> Hi all, Howdy > > I'm having a hard time finding how an http authentication > works and how it could be used with a file containing the > logins and pass I want the user's entry to be compared to. > Actual authentication Is done via the webserver say apache with htaccess Your way is sort

Re: http authentication via perl CGI script?

2003-07-15 Thread Ramon Chavez
Hello. Don't know if it will be useful to you, but you can try CGI::Session or Apache::Session modules I read some about in www.cpan.org and found them very useful. They create cookies to maintain a user's session. Users need to authenticate via username and password. After that you can use the c

Re: HTTP Requests

2002-12-21 Thread Wiggins d'Anconia
Yes. In particular you want to look at LWP. http://search.cpan.org/author/GAAS/libwww-perl-5.66/lib/LWP.pm In general have a look at this category: http://search.cpan.org/modlist/World_Wide_Web http://danconia.org LRMK wrote: Is there a module to send HTTP requests to any web server and retri

Re: HTTP::Request practical examples?

2002-06-10 Thread drieux
On Monday, June 10, 2002, at 02:11 , Cynic wrote: > Hello.. > I have been playing around with HTTP::Request and HTTP::Headers, trying > to build a small client browser application, but I have been confused > miserably from reading CPAN's modules documentation. > > Can anyone point me to actual

Re: HTTP::Request practical examples?

2002-06-10 Thread Peter Scott
At 02:11 AM 6/10/02 -0700, Cynic wrote: >I have been playing around with HTTP::Request and HTTP::Headers, trying to >build a small client browser application, but I have been confused >miserably from reading CPAN's modules documentation. > >Can anyone point me to actual practical examples of a s

Re: HTTP::Request practical examples?

2002-06-10 Thread Sumit_Babu
Hello Cynic, The book "Web Client Programming with Perl" which has a very fine example of using the modules, is out of print the whole book is online. Have a look at http://www.oreilly.com/openbook/webclient/index.html. Regards, Sumit. <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>>> <<<>

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 there an

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

RE: HTTP Links..

2002-01-24 Thread Lorne Easton
I am trying to get a mechaism that does the following.. With relative urls: I.E: At the url <../../page.htm> refers to so my URL, after: --SNIP-- #Get page my $res = $ua->request(HTTP::Request->new(GET => $start

Re: HTTP::Request get or post??

2001-07-21 Thread Greg Meckes
--- Will Muir <[EMAIL PROTECTED]> wrote: > > Here is a quick one, when using HTTP::Request to get data from a website how do I if >I should > use get or post to receive that content of the site. I am pretty new to this so >please be > gentle. > > Thanks in advance > > will > If your just t

Re: HTTP::Request get or post??y

2001-07-21 Thread C.J. Collier
POST sends a request and sets some CGI params. GET can be used to do the same thing, but you need to append a ?foo=bar&baz=wally to the url, if you want to send data to a CGI. If it's not a CGI, though I suggest using GET ;) I think you need a bit of HTTP and CGI background. I suggest reading

RE: HTTP::Status status_message($rc) & LWP::Simple

2001-06-22 Thread perl
er.com - Original Message - From: Me <[EMAIL PROTECTED]> To: Drew Cohan <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, June 22, 2001 5:33 PM Subject: Re: HTTP::Status status_message($rc) & LWP::Si

Re: HTTP::Status status_message($rc) & LWP::Simple

2001-06-22 Thread Me
Do you mean use the result from such a call, or how to do such a call? I'm guessing doing the call, and a somewhat wild guess is: HTTP::Status::status_message($rc) Assuming $rc has been set to something You may need to do a: use HTTP::Status; or similar, before you make the call. And

Re: HTTP::Date???

2001-06-01 Thread Piers Cawley
Please learn to quote properly... "Dan Egli" <[EMAIL PROTECTED]> writes: > It only seems to happen on certain modules. I'm suspecting it's more a > damaged perl install. this is a RH 7.1 box and I downloaded/installed perl > 5.6.1 on it to replace the 5.6.0 that it came with. I'm re-running the

Re: HTTP::Date???

2001-06-01 Thread Timothy Kimball
Peter Scott wrote: : Okay, I geddit... it's because HTTP::Date is required by CPAN.pm (perldoc : -m CPAN | grep -i http). So perl sees the module name as being one it : already knows of and turns it into the indirect object syntax as you say. OK, that makes more sense. (I wasn't entirely comf

Re: HTTP::Date???

2001-06-01 Thread Peter Scott
At 02:15 PM 6/1/01 -0400, Timothy Kimball wrote: >: I get the same result with Data::Dumper & 5.6.0 unless I quote >: the module name: >: >: perl -MCPAN -e 'install "Data::Dumper"' > >To elaborate, now that I've had a minute to think about it: when perl >sees "install GD", it takes "GD" as a barew

Re: HTTP::Date???

2001-06-01 Thread Timothy Kimball
I replied: : Dan Egli wrote: : : It's odd tho. I type: : : : : perl -MCPAN -e 'install GD' and it works fine. Only with thinks like : : HTTP::Date and Data::Dumper does it work. I'm not sure whats up. : : I get the same result with Data::Dumper & 5.6.0 unless I quote : the module name: : : per

Re: HTTP::Date???

2001-06-01 Thread Timothy Kimball
Dan Egli wrote: : It's odd tho. I type: : : perl -MCPAN -e 'install GD' and it works fine. Only with thinks like : HTTP::Date and Data::Dumper does it work. I'm not sure whats up. I get the same result with Data::Dumper & 5.6.0 unless I quote the module name: perl -MCPAN -e 'install "Data::Dum

Re: HTTP::Date???

2001-06-01 Thread Dan Egli
test CPAN, then try again. - Original Message - From: Peter Scott <[EMAIL PROTECTED]> To: Dan Egli <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, June 01, 2001 11:39 AM Subject: Re: HTTP::Date??? > At 11:15 AM 6/1/2001 -0600, Dan Egli wrote: > >[root@sh

Re: HTTP::Date???

2001-06-01 Thread Peter Scott
At 11:15 AM 6/1/2001 -0600, Dan Egli wrote: >[root@shortcircuit /root]# perl -MCPAN -e 'install HTTP::Date' >Can't locate object method "install" via package "HTTP::Date" (perhaps you >forgot to load "HTTP::Date"?) at -e line 1. Sorry, I had to ask. You have some strange problem with your CPAN m

Re: HTTP::Date???

2001-06-01 Thread Dan Egli
root]# - Original Message - From: Peter Scott <[EMAIL PROTECTED]> To: Dan Egli <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, June 01, 2001 11:00 AM Subject: Re: HTTP::Date??? > At 08:38 AM 6/1/2001 -0600, Dan Egli wrote: > >I was using the CPAN mo

Re: HTTP::Date???

2001-06-01 Thread Peter Scott
At 08:38 AM 6/1/2001 -0600, Dan Egli wrote: >I was using the CPAN module to install a couple of modules that I needed for >programs, and I keep noticing that it says: > >Going to read /root/.cpan/sources/modules/02packages.details.txt.gz > Database was generated on Wed, 30 May 2001 18:59:02 GMT

RE: HTTP::Date???

2001-06-01 Thread Hill, Ronald
[snipped] How do I get HTTP::Date? Anyone? Hi Dan, What version of libwww did you install? I just checked mine and the module is there. Did you receive any errors during the build? If so what were they? Ron