Topic: HTTP requests using Python

Hi friends. We have two reporting processes. 1st is a report processing and FTP python script that run on our UNIX server. 2nd is a web page created by out London team, to upload the reports after the FTP process is complete. Both processes are working fine individually, but we need to merge the two. I have written the below code to incorporate onto the python process in order to automate the two.

try:
    new = 2 #open in a new tab
    TT = '2012-01-13'
    #I will pass the date(TT) to the webpage in order to upload reports for that date
    url = 'http://eqgn1.us.xp.com:18787/optionupload/OReportOServlet?dirpath=%%2Xport%%2Fdata%%2Fgpfs%%2Frts%%2FReport&cobdate=%s&submit=submit&operation=submit' % TT
    webbrowser.open(url, new=new)
    #webbrowser.select_form(nr=0)
except IOError:
    print 'Cannot open URL %s for reading' % url

My superiors do not like the idea of having a webpage opened each time the process is complete. Is there another way of updating the webpage using python without having to open the browser? I have been searching but cannot find anything as I am still new at this. Thank you in advance for your help

Thumbs up