Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Fri Apr 19, 2024 12:33 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 18 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Tue Mar 03, 2015 7:25 am 
Offline
Contributor

Joined: Wed Apr 07, 2010 8:04 am
Posts: 105
Location: Boston, MA
Is there an Ampersand (&) somewhere on your software lines in the XML? For some reason, which I still don't know, I had a case where OSX cURL was breaking the XML data during POST when it encountered the symbol, even if within it was within CDATA. If you change the XML line to &amp, then curl works. You can test with [code]curl --data @"localfile.xml" httpbin.org/post[/code]

_________________
Old OA Setup: 500 Windows 7 workstations & 200 Apple OSX with OA v1.5.2 on Windows Server 2003 and WAMP 2
New OA Setup: 100 Windows servers with OA 2.2 on Windows Server 2016 and WAMP 3


Top
 Profile  
Reply with quote  
PostPosted: Mon Mar 09, 2015 5:14 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 07, 2004 11:48 am
Posts: 1964
Location: Brisbane, Australia
I have made some tweaks to the audit_osx.sh for the next version.
It should work fine without an upgraded Open-AudIT.
It's attached for you to try.

The main items were changing
[code]echo "form_systemXML=<?xml version="\"1.0\"" encoding="\"UTF-8\""?>" > $xml_file[/code]
to
[code]echo "<?xml version="\"1.0\"" encoding="\"UTF-8\""?>" > $xml_file[/code]

And then adjusting the curl from
[code]curl --data @"$xml_file" $url[/code]
to
[code]curl --data-urlencode form_systemXML@"$xml_file" $url[/code]


Attachments:
File comment: Rename to audit_osx.sh
audit_osx.txt [36.63 KiB]
Downloaded 282 times

_________________
Support and Development hours available from [url=https://opmantek.com]Opmantek[/url].
Please consider a purchase to help make Open-AudIT better for everyone.
Top
 Profile  
Reply with quote  
PostPosted: Tue Mar 10, 2015 7:56 am 
Offline
Contributor

Joined: Wed Apr 07, 2010 8:04 am
Posts: 105
Location: Boston, MA
Yes! it works now.

_________________
Old OA Setup: 500 Windows 7 workstations & 200 Apple OSX with OA v1.5.2 on Windows Server 2003 and WAMP 2
New OA Setup: 100 Windows servers with OA 2.2 on Windows Server 2016 and WAMP 3


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group