cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: autobuilds web

From: Andy Cedilnik <andy.cedilnik_at_kitware.com>
Date: 22 Jan 2003 12:03:17 -0500

Hi Daniel,

I can do several machines, but you will have to add http submission
since I cannot send mails from those machines. Here is example cgi
script:

#!/usr/bin/env python

import cgi
import sys
import curlsubmission

print "Content-type: text/html"
print

form = cgi.FieldStorage()
FileData = form.value

if not FileData:
    print "Please send file. "
    sys.exit(0)

filename = curlsubmission.getfilename()
file = open(filename, "w")
if not file:
  print "Cannot create file: " + filename
  sys.exit(0)
file.write(FileData)
file.close()
print "Thank you for the file"

curlsubmission should have something that gets unique file name.

Then you can use some cool tool such as... curl to submit.

                                        Andy

On Tue, 2003-01-21 at 10:47, Daniel Stenberg wrote:
> You can see the first attempt of a status page of the automatic builds here:
>
> http://curl.haxx.se/auto/

-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
Received on 2003-01-22