Friday, March 29, 2013

How to get the the filename of WGET?

hi all:
        I want to send information to django use this:
wget -v --post-file=conf.xml http://192.168.23.73:8001/ipdb_file/

And the Python code is:

def receive(request):
        """
        receive all the xml form myCONF.
        """
        if request.method == 'POST':
                conf_xml =  request.body
                result = handle_xml(conf_xml)
        else:
                result = "42"

        html = "<html><body>It is now %s.</body></html>" % result

        return HttpResponse(html)



I want to know how to get the filename in the WGET like conf.xml 

Thank you.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment