curl-library
Re: uploading to IBM Mainframe
Date: Tue, 5 Feb 2002 12:57:14 +0100 (MET)
On Tue, 5 Feb 2002, erick.nuwendam_at_laposte.net wrote:
> My customer asked me to perform some quote commands before uploading files
> to his system. These commands are :
>
> site umask 000
> site tr pri=7 sec=2
> site lr=4096 blocksi=24576
> site blocksi=4096 primary=8 cylinders recfm=u
> site mgmtclass=mcmda45 storclass=scuser
>
> Does anyone knows how to perform this with CURL C Api.
I believe SITE commands are send just like "SITE ..." to the server, so the
above would get send if you write a snippet similar to this:
struct curl_slist *headers;
headers = curl_slist_append(headers, "SITE umask 000");
headers = curl_slist_append(headers, "SITE tr pri=7 sec=2");
headers = curl_slist_append(headers, "SITE lr=4096 blocksi=24576");
headers = curl_slist_append(headers, "SITE blocksi=4096 primary=8 "
"cylinders recfm=u");
headers = curl_slist_append(headers, "SITE mgmtclass=mcmda45 "
"storclass=scuser");
/* pass the list of custom commands to the handle */
curl_easy_setopt(easyhandle, CURLOPT_QUOTE, headers);
I'm not 100% sure, so you should do some proper checking before trusting me!
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/Received on 2002-02-05