Hi all,

I have been having trouble getting an automated script to backup the pfSense configuration file.  I have installed my own certificate and told curl where to look for it.  It verifies the certificate ok but gets an error "Expectation Failed".   Anyone have any idea what I am doing wrong?  The same script / command line is working fine for a seperate m0n0wall...

[admin] # curl --cacert <pfSense>.cert -v -s -o <pfSense>-config.xml -F Submit=download -u 'admin:<password>' https://<pfSense>/diag_backup.php

* About to connect() to <pfSense> port 443
*   <pfSense IP>... * connected
* Connected to <pfSense> (<pfSense IP>) port 443
* successfully set certificate verify locations:
*   CAfile: <pfSense>.cert
  CApath: none
* SSL connection using AES256-SHA
* Server certificate:
    [...]
* SSL certificate verify ok.
* Server auth using Basic with user 'admin'
> POST /diag_backup.php HTTP/1.1
Authorization: Basic [...]
User-Agent: curl/7.13.1 (i386-redhat-linux-gnu) libcurl/7.13.1 OpenSSL/0.9.7f zlib/1.2.2.2 libidn/0.5.15
Host: <pfSense>
Pragma: no-cache
Accept: */*
Content-Length: 149
Expect: 100-continue
Content-Type: multipart/form-data; boundary=----------------------------2865c75fe169

< HTTP/1.1 417 Expectation Failed
< Connection: close
< Content-Length: 0
< Date: Thu, 05 Oct 2006 22:35:21 GMT
< Server: lighttpd/1.4.11
* Closing connection #0


Glenn Crawford

*******************************************************************************
Are you Reddy to learn more about our shipshape city?  
Visit redcliffe.qld.gov.au for the latest information about award-winning Redcliffe - Queensland's Tidiest Town 2005.

Better still... why not experience its coastal delights in person?  Redcliffe - it's Reddy for Anything!
*******************************************************************************
PLEASE NOTE * * * * * * * * * * * * * * * * * * * * 
This message and any attachments may contain privileged and confidential information 
intended only for the use of the addressee/s.  Any unauthorised use of this material 
is prohibited. If you have received this message in error, please notify the sender immediately, 
delete the message and destroy any printed or electronic copies. 
This Council does not accept any responsibility for any loss or damage that may result 
from viruses or communication errors.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * 

Reply via email to