####Sample Post Request with body
curl -k -X POST 'https://example.com/path' -d @payload.json -H 'Content-Type:application/json' -H 'request-header' -D -
- @payload.json post data to make request
| package com.lp.mysample; | |
| import java.math.BigInteger; | |
| /** | |
| * @author lperumalm This class converts number to different base system (base2 | |
| * - base9) | |
| * <h3>Sample Test Data for 16</h3> | |
| * <ul> | |
| * </li> |
####Sample Post Request with body
curl -k -X POST 'https://example.com/path' -d @payload.json -H 'Content-Type:application/json' -H 'request-header' -D -
| import java.util.HashMap; | |
| import java.util.Map; | |
| import java.util.regex.Matcher; | |
| import java.util.regex.Pattern; | |
| public class HTMLToSlackMarkUp { | |
| public static Map<String, String> slackMarkUpMap = new HashMap<String, String>() { | |
| { | |
| put("<strong>", "*"); | |
| put("</strong>", "*"); |
| <html> | |
| <head> | |
| <script type="text/javascript" src="http://www.sirpigal.org/js/jquery.core.js"></script> | |
| <script> | |
| $(document).ready(function(){ | |
| $('#myform').submit(function() { | |
| // console.log($('#result').text(JSON.stringify($('form').serializeObject()))); | |
| console.log(JSON.stringify($(this).serializeArray())); | |
| return false; | |
| }); |
I hereby claim:
To claim this, I am signing this object:
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Sample Map</title> | |
| <style> | |
| #mapdiv { | |
| margin: 0; | |
| padding: 0; | |
| width: 500px; | |
| height: 500px; |
| { | |
| "http_codes":[ | |
| { | |
| "code":100, | |
| "status":"Continue", | |
| "type":"Information responses", | |
| "link":"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/100", | |
| "description":"This interim response indicates that everything so far is OK and that the client should continue with the request or ignore it if it is already finished." | |
| }, | |
| { |
| ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### | |
| ### Shell script to download Oracle JDK / JRE / Java binaries from Oracle website using terminal / command / shell prompt using wget. | |
| ### You can download all the binaries one-shot by just giving the BASE_URL. | |
| ### Script might be useful if you need Oracle JDK on Amazon EC2 env. | |
| ### Script is updated for every JDK release. | |
| ### Features:- | |
| # 1. Resumes a broken / interrupted [previous] download, if any. | |
| # 2. Renames the file to a proper name with including platform info. |