{"id":29949,"date":"2017-05-02T03:01:11","date_gmt":"2017-05-01T17:01:11","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=29949"},"modified":"2017-09-22T08:15:13","modified_gmt":"2017-09-21T22:15:13","slug":"ssl-on-linux-crontab-curl-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/ssl-on-linux-crontab-curl-tutorial\/","title":{"rendered":"SSL on Linux Crontab Curl Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/SSL_Linux_Crontab_Curl.jpg\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"SSL on Linux Crontab Curl Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/SSL_Linux_Crontab_Curl.jpg\" title=\"SSL on Linux Crontab Curl Tutorial\" \/><\/a><p class=\"wp-caption-text\">SSL on Linux Crontab Curl Tutorial<\/p><\/div>\n<p>Do you remember when we used PHP and the dynamic duo of Crontab and Curl on a Linux web server for the www.rjmprogramming.com.au domain to continually update its landing page to populate a dropdown of our blog&#8217;s postings?  Back then, as you can see with <a title='More on Linux Crontab Curl Tutorial' href='#molcct'>More on Linux Crontab Curl Tutorial<\/a>, and into all the incarnations of <a target=_blank title='tutorial_options.php' href='http:\/\/www.rjmprogramming.com.au\/PHP\/tutorial_options.php--------GETME'>tutorial_options.php<\/a> we never considered <a target=_blank title='SSL information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/Transport_Layer_Security'>SSL<\/a> and the thought that one day we&#8217;d want to be using the web address URL &#8230;<\/p>\n<p><code><br \/>\n<a target=_blank title='https:\/\/www.rjmprogramming.com.au' href='https:\/\/www.rjmprogramming.com.au'>https:\/\/www.rjmprogramming.com.au<\/a><br \/>\n ... rather than just plain old ...<br \/>\n<a target=_blank title='HTTP:\/\/www.rjmprogramming.com.au' href='HTTP:\/\/www.rjmprogramming.com.au'>ht<i><\/i>tp:\/\/www.rjmprogramming.com.au<\/a><br \/>\n<\/code><\/p>\n<p> &#8230; <\/p>\n<p><code id='wadadm'><br \/>\nWhat a difference <strike>a day made<\/strike> an \"<b><font color=blue>s<\/font><\/b>\" make<b><font color=blue>s<\/font><\/b><br \/>\nTwenty-four little hour<b><font color=blue>s<\/font><\/b><br \/>\nBrought the <b><font color=blue>s<\/font><\/b>un and the flower<b><font color=blue>s<\/font><\/b><br \/>\nWhere there u<b><font color=blue>s<\/font><\/b>ed to be rain<br \/>\n<\/code><\/p>\n<p> &#8230; added security by encryption of your web page contents, that is.<\/p>\n<p>You can view what amounted to a <b>one line<\/b> (added) change as per &#8230;<\/p>\n<p><code><br \/>\n\/\/ ... other code above ...<br \/>\n function guidedextras($ing, $intitle, $xid, $pexcerpt) {<br \/>\n   global $prevdod, $prevint, $prevret, $retvalp, $prevxid, $and, $ptg, $index;<br \/>\n   <b>$ing=str_replace(\"https:\",\"\",str_replace(\"http:\",\"\",$ing));<\/b><br \/>\n   $thisint = explode(\" \", str_replace(\"_\", \" \", str_replace(\"  \", \"++\", str_replace('\"', '%22', str_replace(\"'\", \"%27\", $intitle)))));<br \/>\n\/\/ ... other code below ...<br \/>\n<\/code><\/p>\n<p> &#8230; <a target=_blank title='tutorial_options.php' href='http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/tutorial_options.php--------GETME'>this way<\/a> in this <a target=_blank title='tutorial_options.php' href='http:\/\/www.rjmprogramming.com.au\/PHP\/tutorial_options.php--------GETME'>tutorial_options.php<\/a> code.<\/p>\n<p>This is our first of a series of blog posts outlining our journey through SSL www.rjmprogramming.com.au issues. They often revolve around changing absolute URLs starting with <i>htt<\/i><i>p:\/\/<\/i> to just <i>\/\/<\/i> syntax.  If this interests, hope you tag along as we go into more.<\/p>\n<hr>\n<p id='molcct'>Previous relevant <a target=_blank title='More on Linux Crontab Curl Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/more-on-linux-crontab-curl-tutorial\/'>More on Linux Crontab Curl Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/More_Linux_Crontab_Curl.jpg\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"More on Linux Crontab Curl Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/More_Linux_Crontab_Curl.jpg\" title=\"More on Linux Crontab Curl Tutorial\" \/><\/a><p class=\"wp-caption-text\">More on Linux Crontab Curl Tutorial<\/p><\/div>\n<p>Sometimes for a website you only want to do a web server task once or a few times a day, and you, ideally, wouldn&#8217;t want to run into the remote possibility that two people could perform the task at precisely the same time.   This scenario happens often when using server-side languages like ASP.Net and PHP.   If it didn&#8217;t matter that two people might do the same thing at once then you could do the job within you web-based PHP, and you may consider using a date and time test in your web-based PHP to do your &#8220;once or a few times&#8221; task in your PHP.   This latter idea has the advantage that file ownership issues will probably not crop up because the web user will be manipulating any media or HTML files you may be dealing with, rather than the administrator user that will probably be overseeing your &#8220;once or a few times&#8221; <a target=_blank href='http:\/\/en.wikipedia.org\/wiki\/Crontab' title='Linux crontab information from Wikipedia ... thanks'>cron<\/a> job that we show you here today.<\/p>\n<p>So the task today is to keep the rjmprogramming.com.au&#8217;s <a target=_blank title='Landing page of domain rjmprogramming.com.au' href='http:\/\/www.rjmprogramming.com.au'>landing page<\/a> &#8220;Tutorials&#8221; dropdown up to date with the latest blog postings, rather than having to manually attend to this with interactive (HTML code) edits and <a target=_blank title='Web Server Access Primer Tutorial' href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=6407'>(s)ftp<\/a> uploads.  You may be wondering why not just write the landing page in PHP, and this is a fair point, but the strategy here at this domain is that the landing page and its &#8220;fellow&#8221; webpages should be independent of MySql, which, under big loads, can go down, and here we use a <a target=_blank title='Watchdog' href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=watchdog'>watchdog<\/a> to fix that, should it happen.   Previously we had a very similar task you can read about with the <a href='#kscj' title='Linux Crontab Curl Primer Tutorial'>Linux Crontab Curl Primer Tutorial<\/a> below.   It is so similar, let&#8217;s use <a target=_blank href='http:\/\/en.wikipedia.org\/wiki\/CURL' title='Curl information from Wikipedia ... thanks'>curl<\/a>, PHP and crontab to do this task like with that previous task.   So this is command line, and this is batch work, but that worry in other types of batch work where you need to worry about where you are as you do any file management, is handled quite well by the wrapping of the job in curl, which takes as its argument a URL, so, implicitly, the place to work with file management, is handled by curl and the PHP we write (specifically where the code uses <i>dirname(__FILE__)<\/i>).<\/p>\n<p>Here is the downloadable PHP programming source code you could call <a target=_blank title='tutorial_options.php' href='http:\/\/www.rjmprogramming.com.au\/PHP\/tutorial_options.php_GETME'>tutorial_options.php<\/a> and you will see, if you examine the code that it is very specific to conditions here at this rjmprogramming.com.au domain, so please be aware of that, but maybe its concepts can help you out with something else you are tackling.  A list of the specifics you would want to address (should you adapt it for your own purposes) include:<\/p>\n<ul>\n<li>the PHP explode methodology (in the code above) assumes there are two select dropdowns (spelt in lowercase) in the underlying HTML code (for rjmprogramming.com.au&#8217;s landing page) we are rewriting, and that it is the second one we update with information gleaned (via SQL query) from the WordPress MySql database the PHP reads (where we piece together a $retval string of the HTML option tags belonging to the <i>tutorials<\/i> HTML select tag)<\/li>\n<li>the MySql database access hostname, username, password, database name, database table name<\/li>\n<li>the Linux web server file owner used during the (commented out) <i>chown<\/i> command you may need to consider to allow the crontab&#8217;s user be able to leave the files owned by the website user<\/li>\n<\/ul>\n<p>PHP commands of interest in today&#8217;s <a target=_blank title='Live run via click picture' href='http:\/\/www.rjmprogramming.com.au\/PHP\/More_Linux_Crontab_Curl.jpg'>tutorial<\/a> include:<\/p>\n<ul>\n<li><a target=_blank href='http:\/\/www.php.net\/manual\/en\/function.file-get-contents.php' title='file_get_contents'>file_get_contents<\/a><\/li>\n<li><a target=_blank href='http:\/\/www.php.net\/manual\/en\/function.file-put-contents.php' title='file_put_contents'>file_put_contents<\/a><\/li>\n<li><a target=_blank href='http:\/\/www.php.net\/manual\/en\/function.dirname.php' title='dirname'>dirname<\/a><\/li>\n<li><a target=_blank href='http:\/\/www.php.net\/manual\/en\/function.chown.php' title='chown'>chown<\/a><\/li>\n<li><a target=_blank href='http:\/\/www.php.net\/manual\/en\/function.explode.php' title='explode'>explode<\/a><\/li>\n<li><a target=_blank href='http:\/\/www.php.net\/manual\/en\/function.str-replace.php' title='str_replace'>str_replace<\/a><\/li>\n<\/ul>\n<p>Maybe it is just me, but liking <i>&#8220;Onion of the 4th dimension&#8221;<\/i> the kind of thinking I gravitate towards is:<\/p>\n<ul>\n<li>supervisory command line arrangements<\/li>\n<li>all &#8220;replace&#8221; type functionality &#8230; to get the problem into a shape suitable for the bits down deeper into the &#8220;core&#8221; of your &#8220;onion&#8221; &#8230; Linux-speak would say <a target=_blank title='Kernel information from Wikipedia ... thanks' href='http:\/\/en.wikipedia.org\/wiki\/Kernel_%28operating_system%29'>&#8220;kernel&#8221;<\/a> of your &#8220;onion&#8221;<\/li>\n<li>parameters and arguments &#8230; continuing on that theme of <i>slotting<\/i> something (the user is specifically interested in, data-wise) in dynamically for something that &#8220;represents&#8221; it in the code &#8230; sort of, like an <a target=_blank title='Interpretive language information from Wikipedia ... thanks' href='http:\/\/en.wikipedia.org\/wiki\/Interpreted_language'><i>&#8220;interpretive&#8221;<\/i><\/a> approach (often people like to say &#8220;scripting&#8221;)<\/li>\n<\/ul>\n<p>Programmers can think in entirely different ways, and if other methods <i>work<\/i> then that is great (woh!) but if they do not <i>work<\/i> for any platform (sometimes you don&#8217;t intend to cater for every platform known to humans and <strike>mangoes<\/strike> &#8230; damn &#8230; was doing so well &#8230; <i>persongoes<\/i>), and these ideas may really irk many programmers, but you need to consider styles of work that suit your way of thinking best.<\/p>\n<p>So, to do this task we wrote new PHP code and cloned the crontab code used in the tutorial below but change the minute of the hour the task is run, and what is run, in crontab on the Linux web server for the domain at rjmprogramming.com.au &#8230; happy studies!<\/p>\n<hr>\n<p id='kscj'>Previous relevant <a target=_blank title='Linux Crontab Curl Primer Tutorial' href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=6399'>Linux Crontab Curl Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Linux\/curl\/crontab\/\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Linux Crontab Curl Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Linux\/curl\/crontab\/Crontab_Curl-68of.jpg\" title=\"Linux Crontab Curl Primer Tutorial\" \/><\/a><p class=\"wp-caption-text\">Linux Crontab Curl Primer Tutorial<\/p><\/div>\n<p>Linux (or Unix) is a command line environment that supports interactive and non-interactive task management.   Often non-interactive tasks are known as <a target=_blank title='batch processing' href='http:\/\/en.wikipedia.org\/wiki\/Batch_processing'>batch processes<\/a>, often intended not to rely on any user intervention, unless there is a problem.<\/p>\n<p>Today, in this tutorial (which builds on <a target=_blank title='Linux Background Primer Tutorial' href=\"#lbpt\">Linux Background Primer Tutorial<\/a>), we see the power of combining <a target=_blank title='Curl information from Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/CURL'>Curl<\/a> under the auspices of crontab to run a webpage piece of functionality once a day at a specified time.<\/p>\n<p>Some CMS systems like Drupal use crontab to perform actions on the database at regular intervals.<\/p>\n<p>For Windows systems you might want to look at Windows Task Schedular for similar functionality.<\/p>\n<p>Linux has several approaches to activating a task, some (not mentioning all the ways one process can <a target=_blank title='fork' href='http:\/\/www.computerhope.com\/jargon\/f\/fork.htm'>fork<\/a> or launch another process) of them being:<\/p>\n<ul>\n<li>interactively (from the command line)<\/li>\n<li>kick off a process from command line, and place in in the background, without supervision, necessarily, via the suffix <i>&amp;<\/i><\/li>\n<li>kick off a process without supervision, necessarily, via <a target=_blank title='crontab' href='http:\/\/www.computerhope.com\/unix\/ucrontab.htm'>crontab<\/a><\/li>\n<li>kick off a process in the background (without supervision, necessarily) via <a target=_blank title='nohup' href='http:\/\/www.computerhope.com\/unix\/unohup.htm'>nohup<\/a><\/li>\n<li>kick off a process from command line, and place it in the background, without supervision, necessarily (and optionally change its state via <a target=_blank title='fg' href='http:\/\/www.computerhope.com\/unix\/ufg.htm'>fg<\/a> and <a target=_blank title='bg' href='http:\/\/www.computerhope.com\/unix\/ubg.htm'>bg<\/a>)<\/li>\n<\/ul>\n<hr \/>\n<p id=\"lbpt\">The previous <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=6077\">Linux Background Primer Tutorial<\/a> is well worth reading below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Linux\/Background\/\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Linux Background Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Linux\/Background\/crontab_nohup_fg.jpg\" title=\"Linux Background Primer Tutorial\" \/><\/a><p class=\"wp-caption-text\">Linux Background Primer Tutorial<\/p><\/div>\n<p>Linux (or Unix) is a command line environment that supports interactive and non-interactive task management.   Often non-interactive tasks are known as <a target=_blank title='batch processing' href='http:\/\/en.wikipedia.org\/wiki\/Batch_processing'>batch processes<\/a>, often intended not to rely on any user intervention, unless there is a problem.<\/p>\n<p>In the pre-GUI days batch processes were very prominent, but they still are today, as far as actually getting things done.   It is just that the more glamorous activities pass our notice more, but there are servers out there churning away with batch processes, dreaming of the day when they&#8217;ll work out how they can make that cup of coffee for you in the morning.   And do we ever offer them even a cup&#8217;o&#8217;tea &#8230; it&#8217;s a disgrace, so it is.<\/p>\n<p>Linux has several approaches to activating a task, some (not mentioning all the ways one process can <a target=_blank title='fork' href='http:\/\/www.computerhope.com\/jargon\/f\/fork.htm'>fork<\/a> or launch another process) of them being:<\/p>\n<ul>\n<li>interactively (from the command line)<\/li>\n<li>kick off a process from command line, and place in in the background, without supervision, necessarily, via the suffix <i>&amp;<\/i><\/li>\n<li>kick off a process without supervision, necessarily, via <a target=_blank title='crontab' href='http:\/\/www.computerhope.com\/unix\/ucrontab.htm'>crontab<\/a><\/li>\n<li>kick off a process in the background (without supervision, necessarily) via <a target=_blank title='nohup' href='http:\/\/www.computerhope.com\/unix\/unohup.htm'>nohup<\/a><\/li>\n<li>kick off a process from command line, and place it in the background, without supervision, necessarily (and optionally change its state via <a target=_blank title='fg' href='http:\/\/www.computerhope.com\/unix\/ufg.htm'>fg<\/a> and <a target=_blank title='bg' href='http:\/\/www.computerhope.com\/unix\/ubg.htm'>bg<\/a>)<\/li>\n<\/ul>\n<p>The last four above are often best performed on a shell script, whether that be a <a target=_blank title='bash' href='http:\/\/www.computerhope.com\/unix\/ubash.htm'>Bash<\/a>, <a target=_blank title='korn' href='http:\/\/www.computerhope.com\/unix\/uksh.htm'>Korn<\/a>, <a target=_blank title='bash' href='http:\/\/www.computerhope.com\/unix\/ush.htm'>Bourne<\/a> or <a target=_blank title='bash' href='http:\/\/www.computerhope.com\/unix\/ucsh.htm'>Cshell<\/a> script.   There are some good general tips for batch process scripts:<\/p>\n<ul>\n<li>never assume where you are, rather specify the directory to be in, via <i>&#8220;cd&#8221;<\/i><\/li>\n<li>never assume that the environment variables will be exactly the same as for an interactive session<\/li>\n<li>be more thorough to log errors and log activity to files to see, later, what happened<\/li>\n<li>it is not good to proceed on errors (unless you have set up independent means of checking) because there will be no human to interactively decide that the problem should not stop the job proceeding<\/li>\n<li>pretty obviously, don&#8217;t expect anybody to answer an interactive entry requirement (but you can simulate lots of interactive input via redirected standard input eg. &lt; [filename])<\/li>\n<\/ul>\n<p>Take a look at some example Linux background processing at this <a target=_blank title='tutorial' href=\"http:\/\/www.rjmprogramming.com.au\/Linux\/Background\/\">tutorial<\/a>.  In it you will see some crontab work where the parameters are (as explained <a target=_blank title='crontab explained' href='http:\/\/forums.hostsearch.com\/showthread.php?2693-Crontab-explained'>here<\/a> &#8230; thanks):<\/p>\n<blockquote>\n<p>\nMIN =  Minute 0-60<\/p>\n<p>HOUR = Hour [24-hour clock] 0-23<\/p>\n<p>MDAY = Day of Month 1-31<\/p>\n<p>MON = Month 1-12 OR jan,feb,mar,apr &#8230;<\/p>\n<p>DOW =  Day of Week 0-6 OR sun,mon,tue,wed,thu,fri,sat<\/p>\n<p>COMMAND = Command to be run Any valid command-line\n<\/p>\n<\/blockquote>\n<p>The <i>*\/6 * * * * \/Applications\/MAMP\/htdocs\/pdftoimage.sh<\/i> of our usage runs \/Applications\/MAMP\/htdocs\/pdftoimage.sh every six minutes.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d6077' onclick='var dv=document.getElementById(\"d6077\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=Linux\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d6077' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr \/>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d6399' onclick='var dv=document.getElementById(\"d6399\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=Linux\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d6399' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d8328' onclick='var dv=document.getElementById(\"d8328\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=web-server\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d8328' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d29949' onclick='var dv=document.getElementById(\"d29949\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/ssl\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d29949' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Do you remember when we used PHP and the dynamic duo of Crontab and Curl on a Linux web server for the www.rjmprogramming.com.au domain to continually update its landing page to populate a dropdown of our blog&#8217;s postings? Back then, &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/ssl-on-linux-crontab-curl-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,37],"tags":[2190,274,284,355,386,680,707,932,997,1114,1682,1319,1345,1411],"class_list":["post-29949","post","type-post","status-publish","format-standard","hentry","category-elearning","category-tutorials","tag-absulute-url","tag-crontab","tag-curl","tag-domain","tag-encryption","tag-landing-page","tag-linux","tag-php","tag-programming","tag-security","tag-ssl","tag-tutorial","tag-url","tag-web-server"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/29949"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=29949"}],"version-history":[{"count":7,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/29949\/revisions"}],"predecessor-version":[{"id":33100,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/29949\/revisions\/33100"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=29949"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=29949"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=29949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}