Dotspace Hosting Co

Domain Names & Web Hosting

Getting online can be daunting, and at Dotspace Hosting Co, we have everything you need to get started. No frills, just reliable web hosting, simple domain registration and excellent service.

Dotspace Hosting Co is backed by Australia's largest domain registrar, utilising world-class hosting infrastructure. Rest assured that your personal or business website is safe and secure with us.

Web Hosting

World class web hosting - security and reliability at a great price.

More info

The best services for your business

We offer a full range of web services, from domain registration to web hosting, and everything in between.

Secure your domain with Domain Privacy and stay in control of it with Domain Manager.

Choose the right level of hosting for your business, from our full range of Cloud and cPanel Hosting products. Just need a professional email address? Look no further than our Email Hosting product. Learn more about our web hosting products.

package com.adzerk.examples; import java.io.BufferedReader; import java.io.DataOutputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import javax.net.ssl.HttpsURLConnection; class AdzerkNativeAdExample { public static void main(String[] args) throws Exception { System.out.println("\nTesting - Sending HTTP POST request..."); URL url = new URL("http://engine.adzerk.net/api/v2"); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); // Add request headers conn.setRequestMethod("POST"); conn.setRequestProperty("Content-Type", "application/json"); // Normally you'd use JSON here, but we've compressed it into a String for ease of instruction String params = "{\"placements\":[{\"divName\":\"div1\",\"networkId\":23,\"siteId\":667480,\"adTypes\":[5]}],\"user\":{\"key\":\"abc\"}}"; // Send post request conn.setDoOutput(true); DataOutputStream wr = new DataOutputStream(conn.getOutputStream()); wr.writeBytes(params); wr.flush(); wr.close(); int responseCode = conn.getResponseCode(); System.out.println("\nSending 'POST' request to URL : " + url); System.out.println("Post parameters : " + params); System.out.println("Response Code : " + responseCode); BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream())); String inputLine; StringBuffer response = new StringBuffer(); while ((inputLine = in.readLine()) != null) { response.append(inputLine); } in.close(); System.out.println(response.toString()); System.out.println("\nDone!"); } }

Domain Privacy

Keep your .COM and .NET domain contact details private.

Add to cart