cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: curl-users Digest, Vol 19, Issue 8

From: Susan D. Morrison <SusanM_at_winltd.com>
Date: Thu, 11 Aug 2005 16:11:41 -0500

I have been working on getting a mime header to submit with a
Post via Curl through Cobol. I can't tell how to manually get
this to print And keep getting an "invalid mime header error".

Anyone have any examples of how this can be done in curl? I am
Doing a straight data stream and seems like it the site does
Not seem able to be able to read it unless it is includes
Carriage returns.

Any help or examples would be appreciated.

Susan Morrison
Wellness International Network, Ltd.
Programmer/Analyst
(972)312-1100 ext. 2232
 

-----Original Message-----
From: curl-users-request_at_cool.haxx.se
[mailto:curl-users-request_at_cool.haxx.se]
Sent: Thursday, August 11, 2005 5:01 AM
To: curl-users_at_cool.haxx.se
Subject: curl-users Digest, Vol 19, Issue 8

Send curl-users mailing list submissions to
        curl-users_at_cool.haxx.se

To subscribe or unsubscribe via the World Wide Web, visit
        http://cool.haxx.se/mailman/listinfo/curl-users
or, via email, send a message with subject or body 'help' to
        curl-users-request_at_cool.haxx.se

You can reach the person managing the list at
        curl-users-owner_at_cool.haxx.se

When replying, please edit your Subject line so it is more specific than
"Re: Contents of curl-users digest..."

Today's Topics:

   1. Curl in loop not working (Sagar Saibi)
   2. Re: Curl in loop not working (Bill Mercer)
   3. RE: Curl in loop not working (Sagar Saibi)

----------------------------------------------------------------------

Message: 1
Date: Wed, 10 Aug 2005 16:31:15 +0530
From: "Sagar Saibi" <sagar.saibi_at_patni.com>
Subject: Curl in loop not working
To: "'Curl-Help'" <curl-users_at_cool.haxx.se>
Message-ID: <002201c59d9a$d477e9c0$b343a8c0_at_patni.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

    I have number of links which I want to capture. I am using a Unix
shell script to capture these links.
    I have loop in which I read one link at a time from a file and pass
it to curl.
    Curl captures the file which is of around 320+ MB , but when it goes
to capture the next link it changes the earlier captured file to 1KB
size file.
    I have also tried moving the file to some other location before the
next curl statement.
    But still the file got changed to 1KB size file.
    If I curl only one file I get a proper 320MB file.

    Can someone help me?
    Thanks in advance.

Thanks
Sagar S

http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to whom
this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at netadmin_at_patni.com and delete this mail.
_____________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://cool.haxx.se/pipermail/curl-users/attachments/20050810/43ab21f6/a
ttachment.htm

------------------------------

Message: 2
Date: Wed, 10 Aug 2005 11:59:05 -0400
From: "Bill Mercer" <bmerc_at_nccer.org>
Subject: Re: Curl in loop not working
To: <curl-users_at_cool.haxx.se>
Message-ID: <s2f9ec0e.010_at_smtp.nccer.org>
Content-Type: text/plain; charset=US-ASCII

There's probably an error in your script. It's hard to guess what it
could be without seeing it though.

>Hi,
>
> I have number of links which I want to capture. I am using a Unix
shell
>script to capture these links.
> I have loop in which I read one link at a time from a file and
pass it
>to curl.
> Curl captures the file which is of around 320+ MB , but when it
goes to
>capture the next link it changes the earlier captured file to 1KB size
file.
> I have also tried moving the file to some other location before
the next
>curl statement.
> But still the file got changed to 1KB size file.
> If I curl only one file I get a proper 320MB file.
>
> Can someone help me?
> Thanks in advance.
>
>Thanks
>Sagar S
>
>
>http://www.patni.com
>World-Wide Partnerships. World-Class Solutions.
>_____________________________________________________________________
>
>This e-mail message may contain proprietary, confidential or legally
>privileged information for the sole use of the person or entity to whom

>this message was originally addressed. Any review,
e-transmission
>dissemination or other use of or taking of any action in reliance
upon
>this information by persons or entities other than the intended
>recipient is prohibited. If you have received this e-mail in error
>kindly delete this e-mail from your records. If it appears that this
>mail has been forwarded to you without proper authority, please
notify
>us immediately at netadmin_at_patni.com and delete this mail.
>_____________________________________________________________________

Cheers,

Bill Mercer - National Center for Construction Education and Research
3600 NW 43rd St
Gainesville, Florida 32606
http://www.nccer.org
Phone 352-334-0911 Fax 352-334-0932
=============================================

                                       

------------------------------

Message: 3
Date: Thu, 11 Aug 2005 10:05:32 +0530
From: "Sagar Saibi" <sagar.saibi_at_patni.com>
Subject: RE: Curl in loop not working
To: "'curl tool talk'" <curl-users_at_cool.haxx.se>
Message-ID: <000e01c59e2e$1cfcc920$b343a8c0_at_patni.com>
Content-Type: text/plain; charset="us-ascii"

I am sure that there is no error in the script.
I am using curl for last 14 months and even I came across such thing for
the
first time.
Following is the code :-

links - This file has the links and filenames

while read link fname ; do
        curl -m 21000 -L -s -A "Mozilla/4.0 (compatible; MSIE 6.0;
Windows NT 5.0;
.NET CLR 1.0.3705)" -b cookie "$link" > $fname
        mv ./$fname ./UPLOAD/$fname
        sleep 10
done < links

-----Original Message-----
From: curl-users-bounces_at_cool.haxx.se
[mailto:curl-users-bounces_at_cool.haxx.se]On Behalf Of Bill Mercer
Sent: Wednesday, August 10, 2005 9:29 PM
To: curl-users_at_cool.haxx.se
Subject: Re: Curl in loop not working

There's probably an error in your script. It's hard to guess what it
could be without seeing it though.

>Hi,
>
> I have number of links which I want to capture. I am using a Unix
shell
>script to capture these links.
> I have loop in which I read one link at a time from a file and
pass it
>to curl.
> Curl captures the file which is of around 320+ MB , but when it
goes to
>capture the next link it changes the earlier captured file to 1KB size
file.
> I have also tried moving the file to some other location before
the next
>curl statement.
> But still the file got changed to 1KB size file.
> If I curl only one file I get a proper 320MB file.
>
> Can someone help me?
> Thanks in advance.
>
>Thanks
>Sagar S
>
>
>http://www.patni.com
>World-Wide Partnerships. World-Class Solutions.
>_____________________________________________________________________
>
>This e-mail message may contain proprietary, confidential or legally
>privileged information for the sole use of the person or entity to
>whom this message was originally addressed. Any review,
e-transmission
>dissemination or other use of or taking of any action in reliance
upon
>this information by persons or entities other than the intended
>recipient is prohibited. If you have received this e-mail in error
>kindly delete this e-mail from your records. If it appears that this
>mail has been forwarded to you without proper authority, please
notify
>us immediately at netadmin_at_patni.com and delete this mail.
>_____________________________________________________________________

Cheers,

Bill Mercer - National Center for Construction Education and Research
3600 NW 43rd St
Gainesville, Florida 32606
http://www.nccer.org
Phone 352-334-0911 Fax 352-334-0932
=============================================

http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at netadmin_at_patni.com and delete this mail.
_____________________________________________________________________

------------------------------

_______________________________________________
curl-users mailing list
curl-users_at_cool.haxx.se
http://cool.haxx.se/mailman/listinfo/curl-users

End of curl-users Digest, Vol 19, Issue 8
*****************************************
Received on 2005-08-11