michael mittiga | 1 Nov 2006 03:53
Picon

Re: cURL in PERL HELP.

I found some more information,  the url contains the date and time stamp the file was created.

20061031033112. 

I will always know the date but not the time stamp of the file I am looking for. Any suggestions?  thanks for all of your help?

On 10/31/06, michael mittiga <mmittiga17 <at> gmail.com> wrote:
I am not sure I follow;

The client place a file on the server daily,  to grab the current file you need to use a datestamp "20061030"  and then they have a sequence number the changes with no rhyme or reason.  if I do 20061030* from the command line I get my file.  if I try to do this in perl, it fails to find the file.  the * is not being interpreted as a wild card.  I am not sure why?

Thanks




On 10/31/06, Daniel Stenberg < daniel <at> haxx.se> wrote:
On Tue, 31 Oct 2006, michael mittiga wrote:

> I need to use a wild card in the URL.  from the c: prompt it works but in a
> perl script it does not find the needed file.  What am I doing wrong here?

[...]

> Any questions?

Yes. If they send different data in the POST (as the command lines differ
there), aren't they supposed to return different results then? And if you
intend to send the same data, why not use --trace-ascii in both commands and
just compare the traces afterwards to see how they differ?

--
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html


michael mittiga | 1 Nov 2006 17:12
Picon

Re: cURL in PERL HELP.

Do you guys know any cURL programmes looking to consult?

On 10/31/06, michael mittiga <mmittiga17 <at> gmail.com > wrote:
I found some more information,  the url contains the date and time stamp the file was created.

20061031033112. 

I will always know the date but not the time stamp of the file I am looking for. Any suggestions?  thanks for all of your help?

On 10/31/06, michael mittiga < mmittiga17 <at> gmail.com> wrote:
I am not sure I follow;

The client place a file on the server daily,  to grab the current file you need to use a datestamp "20061030"  and then they have a sequence number the changes with no rhyme or reason.  if I do 20061030* from the command line I get my file.  if I try to do this in perl, it fails to find the file.  the * is not being interpreted as a wild card.  I am not sure why?

Thanks




On 10/31/06, Daniel Stenberg < daniel <at> haxx.se> wrote:
On Tue, 31 Oct 2006, michael mittiga wrote:

> I need to use a wild card in the URL.  from the c: prompt it works but in a
> perl script it does not find the needed file.  What am I doing wrong here?

[...]

> Any questions?

Yes. If they send different data in the POST (as the command lines differ
there), aren't they supposed to return different results then? And if you
intend to send the same data, why not use --trace-ascii in both commands and
just compare the traces afterwards to see how they differ?

--
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html



Dan Fandrich | 1 Nov 2006 18:12
Favicon

Re: cURL in PERL HELP.

On Wed, Nov 01, 2006 at 11:12:38AM -0500, michael mittiga wrote:
> Do you guys know any cURL programmes looking to consult?

See http://curlm.haxx.se/support.html

>>> Dan
--

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved

Alex Ferenstein | 2 Nov 2006 08:20
Picon
Favicon

Multiple HTTP GETs in one TCP message

Hello,
I'm a newb.
I would like use cURL to send more than one HTTP GET inside a single TCP message, is this possible with cURL?
Alex
Daniel Stenberg | 2 Nov 2006 08:46
Picon
Favicon
Gravatar

Re: Multiple HTTP GETs in one TCP message

On Thu, 2 Nov 2006, Alex Ferenstein wrote:

> I would like use cURL to send more than one HTTP GET inside a single TCP 
> message, is this possible with cURL?

A TCP connection is a stream by definition, so what is a "TCP message" ?

--

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html

Ralph Mitchell | 2 Nov 2006 08:59
Picon

Re: Multiple HTTP GETs in one TCP message

On 11/2/06, Daniel Stenberg <daniel <at> haxx.se> wrote:
> On Thu, 2 Nov 2006, Alex Ferenstein wrote:
>
> > I would like use cURL to send more than one HTTP GET inside a single TCP
> > message, is this possible with cURL?
>
> A TCP connection is a stream by definition, so what is a "TCP message" ?

Is this a pipeline question??

Ralph Mitchell

Alex Ferenstein | 2 Nov 2006 12:40
Picon
Favicon

Re: Multiple HTTP GETs in one TCP message

>> I would like use cURL to send more than one HTTP GET inside a single TCP
>> message, is this possible with cURL?
> A TCP connection is a stream by definition, so what is a "TCP message" ?
Yes. Is it possible with current cURL syntax?
Alex Ferenstein | 2 Nov 2006 12:41
Picon
Favicon

Re: Multiple HTTP GETs in one TCP message

>> I would like use cURL to send more than one HTTP GET inside a single TCP
>> message, is this possible with cURL?
 
> Is this a pipeline question??
 
Yes. Is it possible to do HTTP pipelining with current cURL syntax?
Peter Wullinger | 2 Nov 2006 11:58
Picon

Re: Multiple HTTP GETs in one TCP message

Alex Ferenstein schrieb:
> 
>>> I would like use cURL to send more than one HTTP GET inside a single TCP
>>> message, is this possible with cURL?
>  
>> Is this a pipeline question??
>  
> Yes. Is it possible to do HTTP pipelining with current cURL syntax?

Doesn't this happen automatically already?

% curl -v http://localhost/A http://localhost/B 2>&1 | grep "^\*"
* About to connect() to localhost port 80
*   Trying ::1... connected
* Connected to localhost (::1) port 80
* Re-using existing connection! (#0) with host localhost
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* Connected to localhost (::1) port 80
* Closing connection #0

To remove confusion:

There is no such thing as a "TCP message". There is such a thing
as an IP packet, but you don't really care how many IP packets your
TCP stream requires (at least 5 for proper connections ;-)).

What you want to do is to reuse connections. cURL already does this
(see above).

Cheers,
  Peter

Daniel Stenberg | 2 Nov 2006 14:10
Picon
Favicon
Gravatar

Re: Multiple HTTP GETs in one TCP message

On Thu, 2 Nov 2006, Peter Wullinger wrote:

>> Yes. Is it possible to do HTTP pipelining with current cURL syntax?
>
> Doesn't this happen automatically already?

[...]

> * Re-using existing connection! (#0) with host localhost
>  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

No. curl re-uses the connection if it can, but the curl tool does not use 
pipelining. The most recent libcurl supports HTTP pipelining but it would take 
some effort to make the command line tool take advantage from that.

--

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html


Gmane