{"id":74,"date":"2017-12-22T17:17:30","date_gmt":"2017-12-22T16:17:30","guid":{"rendered":"https:\/\/www.cipv6.de\/worp\/?p=74"},"modified":"2021-05-19T08:10:39","modified_gmt":"2021-05-19T07:10:39","slug":"android-get-specific-json-attribute","status":"publish","type":"post","link":"https:\/\/www.cipv6.de\/worp\/index.php\/2017\/12\/22\/android-get-specific-json-attribute\/","title":{"rendered":"Android: get specific JSON attribute"},"content":{"rendered":"\n<p>When accessing\u00a0<a href=\"http:\/\/headers.jsontest.com\/\">http:\/\/headers.jsontest.com\/ <\/a>the following content is provided:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n\"X-Cloud-Trace-Context\": \"778d633b22354c11045ece44c646dd2a\/11146751159933655926\",\n\"Accept-Language\": \"de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7,sv;q=0.6,la;q=0.5\",\n\"Host\": \"headers.jsontest.com\",\n\"DNT\": \"1\",\n\"User-Agent\": \"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/63.0.3239.84 Safari\/537.36\",\n\"Postman-Token\": \"5851966f-f18b-cb0f-ab9c-e39ca6878d76\",\n\"Accept\": \"*\/*\",\n\"Cache-Control\": \"no-cache\"\n}<\/code><\/pre>\n\n\n\n<p>The Goal is to extract the values for&nbsp; <strong>Host<\/strong> and <strong>User-Agent<\/strong>.<\/p>\n\n\n\n<p>first of all make sure that AndroidManifest.xml contains:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>uses-permission android:name=\"android.permission.INTERNET\";<\/code><\/pre>\n\n\n\n<p>Content of MainActivity.java:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>package de.clarisweb.android.json_get_specific_attributes;\n\npublic class MainActivity extends AppCompatActivity {\npublic class DownloadTask extends AsyncTask&amp;lt; String, Void, String&amp;gt; {\n\n@Override\nprotected String doInBackground(String... urls) {\n\nString result = \"\";\nURL url;\nHttpURLConnection urlConnection= null;\n\ntry {\nurl = new URL(urls&#91;0]);\nurlConnection = (HttpURLConnection) url.openConnection();\nInputStream in = urlConnection.getInputStream();\nInputStreamReader reader = new InputStreamReader(in);\nint data = reader.read();\n\nwhile (data != -1) {\nchar current = (char) data;\nresult += current;\ndata = reader.read();\n\n}\n\nreturn result;\n\n} catch (Exception e){\n\ne.printStackTrace();\nreturn null;\n}\n}\n\n@Override\nprotected void onPostExecute(String s) {\nsuper.onPostExecute(s);\n\ntry {\nJSONObject jsonObject = new JSONObject(s);\nString hostInfo = jsonObject.getString( \"Host\");\nString userAgent = jsonObject.getString( \"User-Agent\");\nLog.i (\"Host : \", hostInfo);\nLog.i (\"User-Agent : \", userAgent);\n\n}\n\n} catch (Exception e) {\ne.printStackTrace();\n}\n\n}\n}\n\n@Override\nprotected void onCreate(Bundle savedInstanceState) {\nsuper.onCreate(savedInstanceState);\nsetContentView(R.layout.activity_main);\n\nDownloadTask task = new DownloadTask();\ntask.execute(\"http:\/\/headers.jsontest.com\/\");\n\n}\n\n@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\nreturn true;\n}\n\n@Override\npublic boolean onOptionsItemSelected(MenuItem item) {\nint id = item.getItemId();\nreturn super.onOptionsItemSelected(item);\n}\n};<\/code><\/pre>\n\n\n\n<p>extract from Logcat shows:<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>12-22 16:08:18.303 7903-7903\/de.clarisweb.android.json_get_specific_attributes I\/Content\u00a0:: headers.jsontest.com\n12-22 16:08:18.303 7903-7903\/de.clarisweb.android.json_get_specific_attributes I\/Content\u00a0:: Dalvik\/2.1.0 (Linux; U; Android 8.0.0; Android SDK built for x86 Build\/OSR1.170901.056)<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>When accessing\u00a0http:\/\/headers.jsontest.com\/ the following content is provided: The Goal is to extract the values for&nbsp; Host and User-Agent. first of all make sure that AndroidManifest.xml contains: Content of MainActivity.java: extract from Logcat shows:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[39,59],"class_list":["post-74","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-android","tag-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Android: get specific JSON attribute - cipv6.de<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.cipv6.de\/worp\/index.php\/2017\/12\/22\/android-get-specific-json-attribute\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Android: get specific JSON attribute - cipv6.de\" \/>\n<meta property=\"og:description\" content=\"When accessing\u00a0http:\/\/headers.jsontest.com\/ the following content is provided: The Goal is to extract the values for&nbsp; Host and User-Agent. first of all make sure that AndroidManifest.xml contains: Content of MainActivity.java: extract from Logcat shows:\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cipv6.de\/worp\/index.php\/2017\/12\/22\/android-get-specific-json-attribute\/\" \/>\n<meta property=\"og:site_name\" content=\"cipv6.de\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-22T16:17:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-19T07:10:39+00:00\" \/>\n<meta name=\"author\" content=\"ugu5ma\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ugu5ma\" \/>\n<meta name=\"twitter:site\" content=\"@ugu5ma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ugu5ma\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2017\\\/12\\\/22\\\/android-get-specific-json-attribute\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2017\\\/12\\\/22\\\/android-get-specific-json-attribute\\\/\"},\"author\":{\"name\":\"ugu5ma\",\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/#\\\/schema\\\/person\\\/5d62b275485540be9e5e9e33d4fab86d\"},\"headline\":\"Android: get specific JSON attribute\",\"datePublished\":\"2017-12-22T16:17:30+00:00\",\"dateModified\":\"2021-05-19T07:10:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2017\\\/12\\\/22\\\/android-get-specific-json-attribute\\\/\"},\"wordCount\":45,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/#\\\/schema\\\/person\\\/5d62b275485540be9e5e9e33d4fab86d\"},\"keywords\":[\"Android\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2017\\\/12\\\/22\\\/android-get-specific-json-attribute\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2017\\\/12\\\/22\\\/android-get-specific-json-attribute\\\/\",\"url\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2017\\\/12\\\/22\\\/android-get-specific-json-attribute\\\/\",\"name\":\"Android: get specific JSON attribute - cipv6.de\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/#website\"},\"datePublished\":\"2017-12-22T16:17:30+00:00\",\"dateModified\":\"2021-05-19T07:10:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2017\\\/12\\\/22\\\/android-get-specific-json-attribute\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2017\\\/12\\\/22\\\/android-get-specific-json-attribute\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2017\\\/12\\\/22\\\/android-get-specific-json-attribute\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Android: get specific JSON attribute\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/#website\",\"url\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/\",\"name\":\"cipv6.de\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/#\\\/schema\\\/person\\\/5d62b275485540be9e5e9e33d4fab86d\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/#\\\/schema\\\/person\\\/5d62b275485540be9e5e9e33d4fab86d\",\"name\":\"ugu5ma\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g\",\"caption\":\"ugu5ma\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g\"},\"sameAs\":[\"https:\\\/\\\/cipv6.de\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Android: get specific JSON attribute - cipv6.de","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.cipv6.de\/worp\/index.php\/2017\/12\/22\/android-get-specific-json-attribute\/","og_locale":"en_US","og_type":"article","og_title":"Android: get specific JSON attribute - cipv6.de","og_description":"When accessing\u00a0http:\/\/headers.jsontest.com\/ the following content is provided: The Goal is to extract the values for&nbsp; Host and User-Agent. first of all make sure that AndroidManifest.xml contains: Content of MainActivity.java: extract from Logcat shows:","og_url":"https:\/\/www.cipv6.de\/worp\/index.php\/2017\/12\/22\/android-get-specific-json-attribute\/","og_site_name":"cipv6.de","article_published_time":"2017-12-22T16:17:30+00:00","article_modified_time":"2021-05-19T07:10:39+00:00","author":"ugu5ma","twitter_card":"summary_large_image","twitter_creator":"@ugu5ma","twitter_site":"@ugu5ma","twitter_misc":{"Written by":"ugu5ma","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2017\/12\/22\/android-get-specific-json-attribute\/#article","isPartOf":{"@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2017\/12\/22\/android-get-specific-json-attribute\/"},"author":{"name":"ugu5ma","@id":"https:\/\/www.cipv6.de\/worp\/#\/schema\/person\/5d62b275485540be9e5e9e33d4fab86d"},"headline":"Android: get specific JSON attribute","datePublished":"2017-12-22T16:17:30+00:00","dateModified":"2021-05-19T07:10:39+00:00","mainEntityOfPage":{"@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2017\/12\/22\/android-get-specific-json-attribute\/"},"wordCount":45,"commentCount":1,"publisher":{"@id":"https:\/\/www.cipv6.de\/worp\/#\/schema\/person\/5d62b275485540be9e5e9e33d4fab86d"},"keywords":["Android"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.cipv6.de\/worp\/index.php\/2017\/12\/22\/android-get-specific-json-attribute\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2017\/12\/22\/android-get-specific-json-attribute\/","url":"https:\/\/www.cipv6.de\/worp\/index.php\/2017\/12\/22\/android-get-specific-json-attribute\/","name":"Android: get specific JSON attribute - cipv6.de","isPartOf":{"@id":"https:\/\/www.cipv6.de\/worp\/#website"},"datePublished":"2017-12-22T16:17:30+00:00","dateModified":"2021-05-19T07:10:39+00:00","breadcrumb":{"@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2017\/12\/22\/android-get-specific-json-attribute\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.cipv6.de\/worp\/index.php\/2017\/12\/22\/android-get-specific-json-attribute\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2017\/12\/22\/android-get-specific-json-attribute\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.cipv6.de\/worp\/"},{"@type":"ListItem","position":2,"name":"Android: get specific JSON attribute"}]},{"@type":"WebSite","@id":"https:\/\/www.cipv6.de\/worp\/#website","url":"https:\/\/www.cipv6.de\/worp\/","name":"cipv6.de","description":"","publisher":{"@id":"https:\/\/www.cipv6.de\/worp\/#\/schema\/person\/5d62b275485540be9e5e9e33d4fab86d"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.cipv6.de\/worp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.cipv6.de\/worp\/#\/schema\/person\/5d62b275485540be9e5e9e33d4fab86d","name":"ugu5ma","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g","caption":"ugu5ma"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g"},"sameAs":["https:\/\/cipv6.de"]}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9uBTs-1c","jetpack-related-posts":[{"id":639,"url":"https:\/\/www.cipv6.de\/worp\/index.php\/2021\/02\/21\/home-assistant-2021-2-3-on-pi4-running-home-assistant-os-fix-dyson-add-on\/","url_meta":{"origin":74,"position":0},"title":"Home Assistant 2021.2.3 on Pi4 running Home Assistant OS: Fix Dyson add-on","author":"ugu5ma","date":"February 21, 2021","format":false,"excerpt":"on Home-assistant click on Supervisor \/ Add-on Store and search for Portainer disable Protection-Mode , enable Show in Sidebar. Start\/Restart Portainer Click on Portainer in the Sidebar, click Settings . Remove core and homeassistant\u00a0from the hidden Containers highlight the Container and click on exec click on Connect Paste the following\u2026","rel":"","context":"In \"smarthome\"","block_context":{"text":"smarthome","link":"https:\/\/www.cipv6.de\/worp\/index.php\/tag\/smarthome\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2021\/02\/image-8.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2021\/02\/image-8.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2021\/02\/image-8.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2021\/02\/image-8.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":1227,"url":"https:\/\/www.cipv6.de\/worp\/index.php\/2025\/01\/30\/getting-started-with-wazuh-setting-up-your-lab-environment-for-xdr-and-siem\/","url_meta":{"origin":74,"position":1},"title":"Getting Started with Wazuh: Setting Up Your Lab Environment for XDR and SIEM&#8221;","author":"ugu5ma","date":"January 30, 2025","format":false,"excerpt":"In today's cybersecurity landscape, having a robust and flexible security information and event management (SIEM) system is crucial. Wazuh, an open-source security platform, offers comprehensive solutions for threat detection, integrity monitoring, incident response, and compliance. Wazuh has an interesting history. In 2015, the Wazuh team decided to fork OSSEC, an\u2026","rel":"","context":"In &quot;Security&quot;","block_context":{"text":"Security","link":"https:\/\/www.cipv6.de\/worp\/index.php\/category\/security\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2025\/01\/wazuh01.jpg?fit=1080%2C617&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2025\/01\/wazuh01.jpg?fit=1080%2C617&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2025\/01\/wazuh01.jpg?fit=1080%2C617&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2025\/01\/wazuh01.jpg?fit=1080%2C617&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2025\/01\/wazuh01.jpg?fit=1080%2C617&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":1103,"url":"https:\/\/www.cipv6.de\/worp\/index.php\/2025\/01\/11\/automate-your-cloud-backups-rclone-and-duplicati\/","url_meta":{"origin":74,"position":2},"title":"Automate Your Cloud Backups: rclone and Duplicati","author":"ugu5ma","date":"January 11, 2025","format":false,"excerpt":"In today's digital age, safeguarding your data is more crucial than ever. With the increasing reliance on cloud storage, it's essential to have a robust backup strategy in place. This blog post will guide you through automating your cloud backups (like Onedrive in this example) using\u00a0rclone\u00a0and\u00a0Duplicati\u00a0on a Linux system (in\u2026","rel":"","context":"In &quot;Linux&quot;","block_context":{"text":"Linux","link":"https:\/\/www.cipv6.de\/worp\/index.php\/category\/linux\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2024\/12\/himage.jpg?fit=1024%2C1024&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2024\/12\/himage.jpg?fit=1024%2C1024&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2024\/12\/himage.jpg?fit=1024%2C1024&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2024\/12\/himage.jpg?fit=1024%2C1024&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":973,"url":"https:\/\/www.cipv6.de\/worp\/index.php\/2024\/09\/06\/manual-steps-for-certificate-based-ssh-communication\/","url_meta":{"origin":74,"position":3},"title":"Lab setup: Secure your SSH communication with certificates","author":"ugu5ma","date":"September 6, 2024","format":false,"excerpt":"When you Ssh the first time to a host the screen shows something like: ssh test@10.50.100.110 The authenticity of host '10.50.100.110 (10.50.100.110)' can't be established. ED25519 key fingerprint is SHA256:jCJ0TIJkKnjgu3RTv5eGER7p4IN5Tb\/JpTEVJNMfpMs. This key is not known by any other names Are you sure you want to continue connecting (yes\/no\/[fingerprint])? Be honest:\u2026","rel":"","context":"In &quot;Security&quot;","block_context":{"text":"Security","link":"https:\/\/www.cipv6.de\/worp\/index.php\/category\/security\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2024\/09\/ssh_cover.jpeg?fit=1024%2C1024&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2024\/09\/ssh_cover.jpeg?fit=1024%2C1024&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2024\/09\/ssh_cover.jpeg?fit=1024%2C1024&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2024\/09\/ssh_cover.jpeg?fit=1024%2C1024&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":212,"url":"https:\/\/www.cipv6.de\/worp\/index.php\/2018\/11\/12\/android-canvas-put-bitmap-in-the-middle-of-the-screen\/","url_meta":{"origin":74,"position":4},"title":"Android Canvas: put Bitmap in the middle of the screen","author":"ugu5ma","date":"November 12, 2018","format":false,"excerpt":"Code: [java] canvas.drawBitmap(bitmap, (getMeasuredWidth()\/2)-(bitmap.getWidth()\/2), (getMeasuredHeight()\/2 -(bitmap.getHeight()\/2)), null); [\/java]","rel":"","context":"In \"Android\"","block_context":{"text":"Android","link":"https:\/\/www.cipv6.de\/worp\/index.php\/tag\/android\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":217,"url":"https:\/\/www.cipv6.de\/worp\/index.php\/2018\/11\/12\/android-canvas-put-text-in-the-middle-of-the-screen\/","url_meta":{"origin":74,"position":5},"title":"Android Canvas: put Text in the middle of the screen","author":"ugu5ma","date":"November 12, 2018","format":false,"excerpt":"Code: [code] paint = new Paint(Paint.ANTI_ALIAS_FLAG); paint.setTextAlign(Paint.Align.CENTER); canvas.drawText(\"Hello Text\", getMeasuredWidth()\/2, getMeasuredHeight()\/2, paint); [\/code]","rel":"","context":"In \"Android\"","block_context":{"text":"Android","link":"https:\/\/www.cipv6.de\/worp\/index.php\/tag\/android\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/posts\/74","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/comments?post=74"}],"version-history":[{"count":0,"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/posts\/74\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/media?parent=74"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/categories?post=74"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/tags?post=74"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}