<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rest &#8211; My Shitty Code</title>
	<atom:link href="https://myshittycode.com/tag/rest/feed/" rel="self" type="application/rss+xml" />
	<link>https://myshittycode.com</link>
	<description>Embracing the Messiness in Search of Epic Solutions</description>
	<lastBuildDate>Fri, 06 Jan 2023 17:33:13 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://myshittycode.com/wp-content/uploads/2022/04/cropped-icon-32x32.png</url>
	<title>Rest &#8211; My Shitty Code</title>
	<link>https://myshittycode.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">205304208</site>	<item>
		<title>WordPress: Creating Gutenberg-Block Compatible Posts Using Rest API</title>
		<link>https://myshittycode.com/2023/01/03/wordpress-creating-gutenberg-block-compatible-posts-using-rest-api/</link>
					<comments>https://myshittycode.com/2023/01/03/wordpress-creating-gutenberg-block-compatible-posts-using-rest-api/#respond</comments>
		
		<dc:creator><![CDATA[Shitty Author]]></dc:creator>
		<pubDate>Tue, 03 Jan 2023 17:27:35 +0000</pubDate>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[Development Tools]]></category>
		<category><![CDATA[Gutenberg]]></category>
		<category><![CDATA[Rest]]></category>
		<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">https://myshittycode.com/?p=1988</guid>

					<description><![CDATA[<p>This article shows how you can dynamically create new WordPress posts using REST API that is compatible with Gutenberg blocks. When done correctly, there is no need to manually convert the content from Classic Editor to Gutenberg Block Editor, or fix incorrectly converted blocks. This is a big time saver when you plan to create [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://myshittycode.com/2023/01/03/wordpress-creating-gutenberg-block-compatible-posts-using-rest-api/">WordPress: Creating Gutenberg-Block Compatible Posts Using Rest API</a> appeared first on <a rel="nofollow" href="https://myshittycode.com">My Shitty Code</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>This article shows how you can dynamically create new WordPress posts using REST API that is compatible with Gutenberg blocks. When done correctly, there is no need to manually convert the content from Classic Editor to Gutenberg Block Editor, or fix incorrectly converted blocks. This is a big time saver when you plan to create many posts using REST API.</p>



<p>This article also assumes you know how to dynamically <a href="https://developer.wordpress.org/rest-api/reference/posts/#create-a-post" target="_blank" rel="noopener">create a WordPress post using REST API</a>.</p>



<p>For simplicity, the cURL command is used instead of a programming language like PHP or Python.</p>



<h2 class="wp-block-heading" id="problem">PROBLEM</h2>



<p>Let&#8217;s assume we want to create a post with one paragraph and 2 columns, each containing a paragraph too. When creating a similar structure directly using Gutenberg Block Editor, the generated source code like this:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: xml; title: ; notranslate">
&lt;p&gt;hello&lt;/p&gt;
&lt;div class=&quot;is-layout-flex wp-block-columns&quot;&gt;
&lt;div class=&quot;is-layout-flow wp-block-column&quot;&gt;
&lt;p&gt;left&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;is-layout-flow wp-block-column&quot;&gt;
&lt;p&gt;right&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
</pre></div>


<p>Using the same structure, we are going to create the same post using REST API instead:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
export auth=...
export wp_url=...

content=$(echo &#039;
&lt;p&gt;hello&lt;/p&gt;
&lt;div class=&quot;is-layout-flex wp-block-columns&quot;&gt;
&lt;div class=&quot;is-layout-flow wp-block-column&quot;&gt;
&lt;p&gt;left&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;is-layout-flow wp-block-column&quot;&gt;
&lt;p&gt;right&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&#039; | jq -Rsa .)

curl -H &quot;Content-Type: application/json&quot; \
  -H &quot;Authorization: Basic $auth&quot; \
  -X POST &quot;$wp_url/wp-json/wp/v2/posts&quot; \
  -d &quot;{\&quot;title\&quot;:\&quot;test\&quot;, \&quot;content\&quot;: $content}&quot;

</pre></div>


<p>When opening the newly created post in edit mode, the post uses Classic Editor, and not Gutenberg Block Editor. </p>



<figure class="wp-block-image aligncenter size-large is-resized"><img fetchpriority="high" decoding="async" src="https://myshittycode.com/wp-content/uploads/2023/01/Screen_Shot_2023-01-03_at_10_22_49_AM-1024x445.png?x45560" alt="" class="wp-image-1991" width="768" height="334" srcset="https://myshittycode.com/wp-content/uploads/2023/01/Screen_Shot_2023-01-03_at_10_22_49_AM-1024x445.png 1024w, https://myshittycode.com/wp-content/uploads/2023/01/Screen_Shot_2023-01-03_at_10_22_49_AM-300x130.png 300w, https://myshittycode.com/wp-content/uploads/2023/01/Screen_Shot_2023-01-03_at_10_22_49_AM-768x334.png 768w, https://myshittycode.com/wp-content/uploads/2023/01/Screen_Shot_2023-01-03_at_10_22_49_AM.png 1352w" sizes="(max-width: 768px) 100vw, 768px" /></figure>



<p>When attempting to convert the post to Gutenberg blocks&#8230;</p>



<figure class="wp-block-image aligncenter size-large is-resized"><img decoding="async" src="https://myshittycode.com/wp-content/uploads/2023/01/Screen_Shot_2023-01-03_at_10_23_02_AM-1024x362.png?x45560" alt="" class="wp-image-1992" width="768" height="272" srcset="https://myshittycode.com/wp-content/uploads/2023/01/Screen_Shot_2023-01-03_at_10_23_02_AM-1024x362.png 1024w, https://myshittycode.com/wp-content/uploads/2023/01/Screen_Shot_2023-01-03_at_10_23_02_AM-300x106.png 300w, https://myshittycode.com/wp-content/uploads/2023/01/Screen_Shot_2023-01-03_at_10_23_02_AM-768x271.png 768w, https://myshittycode.com/wp-content/uploads/2023/01/Screen_Shot_2023-01-03_at_10_23_02_AM.png 1348w" sizes="(max-width: 768px) 100vw, 768px" /></figure>



<p>Some blocks are converted successfully. However, most of the complex or nested blocks are converted to Custom HTML blocks instead. This is because it is not smart enough to know which Gutenberg blocks to use.</p>



<figure class="wp-block-image aligncenter size-large is-resized"><img decoding="async" src="https://myshittycode.com/wp-content/uploads/2023/01/Screen-Shot-2023-01-03-at-10.23.16-AM-1024x604.png?x45560" alt="" class="wp-image-1993" width="768" height="453" srcset="https://myshittycode.com/wp-content/uploads/2023/01/Screen-Shot-2023-01-03-at-10.23.16-AM-1024x604.png 1024w, https://myshittycode.com/wp-content/uploads/2023/01/Screen-Shot-2023-01-03-at-10.23.16-AM-300x177.png 300w, https://myshittycode.com/wp-content/uploads/2023/01/Screen-Shot-2023-01-03-at-10.23.16-AM-768x453.png 768w, https://myshittycode.com/wp-content/uploads/2023/01/Screen-Shot-2023-01-03-at-10.23.16-AM.png 1336w" sizes="(max-width: 768px) 100vw, 768px" /></figure>



<p>This becomes problematic and time-consuming when you have to manually convert each post to use Gutenberg Block Editor, and fix sections that failed to convert to the correct blocks.</p>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading" id="solution">SOLUTION</h2>



<p>If you know you are going to create future new posts using known Gutenberg blocks (ex: paragraph, column, image, etc), the easiest approach is to manually create a temporary post using Gutenberg Block Editor first.</p>



<p>Using the same example, the paragraph and 2-column structure are manually created using Gutenberg Block Editor.</p>



<figure class="wp-block-image aligncenter size-large is-resized"><img loading="lazy" decoding="async" src="https://myshittycode.com/wp-content/uploads/2023/01/Screen-Shot-2023-01-03-at-10.26.09-AM-1024x359.png?x45560" alt="" class="wp-image-1994" width="768" height="269" srcset="https://myshittycode.com/wp-content/uploads/2023/01/Screen-Shot-2023-01-03-at-10.26.09-AM-1024x359.png 1024w, https://myshittycode.com/wp-content/uploads/2023/01/Screen-Shot-2023-01-03-at-10.26.09-AM-300x105.png 300w, https://myshittycode.com/wp-content/uploads/2023/01/Screen-Shot-2023-01-03-at-10.26.09-AM-768x270.png 768w, https://myshittycode.com/wp-content/uploads/2023/01/Screen-Shot-2023-01-03-at-10.26.09-AM.png 1362w" sizes="auto, (max-width: 768px) 100vw, 768px" /></figure>



<p>Now, click on the kebab on the top right, then select <strong>Code editor</strong>.</p>



<figure class="wp-block-image aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://myshittycode.com/wp-content/uploads/2023/01/Screen_Shot_2023-01-03_at_10_26_28_AM.png?x45560" alt="" class="wp-image-1995" width="468" height="746" srcset="https://myshittycode.com/wp-content/uploads/2023/01/Screen_Shot_2023-01-03_at_10_26_28_AM.png 624w, https://myshittycode.com/wp-content/uploads/2023/01/Screen_Shot_2023-01-03_at_10_26_28_AM-188x300.png 188w" sizes="auto, (max-width: 468px) 100vw, 468px" /></figure>



<p>This will display the source code in block format, which looks like this:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: xml; title: ; notranslate">
&lt;!-- wp:paragraph --&gt;
&lt;p&gt;hello&lt;/p&gt;
&lt;!-- /wp:paragraph --&gt;

&lt;!-- wp:columns --&gt;
&lt;div class=&quot;wp-block-columns&quot;&gt;&lt;!-- wp:column --&gt;
&lt;div class=&quot;wp-block-column&quot;&gt;&lt;!-- wp:paragraph --&gt;
&lt;p&gt;left&lt;/p&gt;
&lt;!-- /wp:paragraph --&gt;&lt;/div&gt;
&lt;!-- /wp:column --&gt;

&lt;!-- wp:column --&gt;
&lt;div class=&quot;wp-block-column&quot;&gt;&lt;!-- wp:paragraph --&gt;
&lt;p&gt;right&lt;/p&gt;
&lt;!-- /wp:paragraph --&gt;&lt;/div&gt;
&lt;!-- /wp:column --&gt;&lt;/div&gt;
&lt;!-- /wp:columns --&gt;
</pre></div>


<p>Now that we know what the format looks like, we can automate the post creations using REST API.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
content=$(echo &#039;
&lt;!-- wp:paragraph --&gt;
&lt;p&gt;hello&lt;/p&gt;
&lt;!-- /wp:paragraph --&gt;

&lt;!-- wp:columns --&gt;
&lt;div class=&quot;wp-block-columns&quot;&gt;&lt;!-- wp:column --&gt;
&lt;div class=&quot;wp-block-column&quot;&gt;&lt;!-- wp:paragraph --&gt;
&lt;p&gt;left&lt;/p&gt;
&lt;!-- /wp:paragraph --&gt;&lt;/div&gt;
&lt;!-- /wp:column --&gt;

&lt;!-- wp:column --&gt;
&lt;div class=&quot;wp-block-column&quot;&gt;&lt;!-- wp:paragraph --&gt;
&lt;p&gt;right&lt;/p&gt;
&lt;!-- /wp:paragraph --&gt;&lt;/div&gt;
&lt;!-- /wp:column --&gt;&lt;/div&gt;
&lt;!-- /wp:columns --&gt;
&#039; | jq -Rsa .)


curl -H &quot;Content-Type: application/json&quot; \
  -H &quot;Authorization: Basic $auth&quot; \
  -X POST &quot;$wp_url/wp-json/wp/v2/posts&quot; \
  -d &quot;{\&quot;title\&quot;:\&quot;test\&quot;, \&quot;content\&quot;: $content}&quot;
</pre></div>


<p>Finally, we can create methods/functions with our favorite programming language to generate these blocks, which will be fed to the REST API to create a new WordPress post that is 100% compatible with Gutenberg blocks. </p>
<p>The post <a rel="nofollow" href="https://myshittycode.com/2023/01/03/wordpress-creating-gutenberg-block-compatible-posts-using-rest-api/">WordPress: Creating Gutenberg-Block Compatible Posts Using Rest API</a> appeared first on <a rel="nofollow" href="https://myshittycode.com">My Shitty Code</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://myshittycode.com/2023/01/03/wordpress-creating-gutenberg-block-compatible-posts-using-rest-api/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1988</post-id>	</item>
		<item>
		<title>Rest Template: Could Not Extract Response &#8211; No Suitable HttpMessageConverter Found for Response Type [X] and Content Type [application/json;charset=UTF-8]</title>
		<link>https://myshittycode.com/2015/10/01/rest-template-could-not-extract-response-no-suitable-httpmessageconverter-found-for-response-type-x-and-content-type-applicationjsoncharsetutf-8/</link>
					<comments>https://myshittycode.com/2015/10/01/rest-template-could-not-extract-response-no-suitable-httpmessageconverter-found-for-response-type-x-and-content-type-applicationjsoncharsetutf-8/#comments</comments>
		
		<dc:creator><![CDATA[Shitty Author]]></dc:creator>
		<pubDate>Thu, 01 Oct 2015 15:31:56 +0000</pubDate>
				<category><![CDATA[Programming Language]]></category>
		<category><![CDATA[Rest]]></category>
		<category><![CDATA[Spring]]></category>
		<guid isPermaLink="false">http://myshittycode.com/?p=848</guid>

					<description><![CDATA[<p>PROBLEM When invoking a web service using RestTemplate:- &#8230; the following exception occurs:- SOLUTION If the content type is JSON, add the following dependency:-</p>
<p>The post <a rel="nofollow" href="https://myshittycode.com/2015/10/01/rest-template-could-not-extract-response-no-suitable-httpmessageconverter-found-for-response-type-x-and-content-type-applicationjsoncharsetutf-8/">Rest Template: Could Not Extract Response &#8211; No Suitable HttpMessageConverter Found for Response Type [X] and Content Type [application/json;charset=UTF-8]</a> appeared first on <a rel="nofollow" href="https://myshittycode.com">My Shitty Code</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">PROBLEM</h2>



<p>When invoking a web service using <code>RestTemplate</code>:-</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: java; title: ; notranslate">
restTemplate.getForObject(&quot;http://server/api&quot;, MyBean&#x5B;].class));
</pre></div>


<p>&#8230; the following exception occurs:-</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
Exception in thread &quot;main&quot; org.springframework.web.client.RestClientException:
Could not extract response: no suitable HttpMessageConverter found for response
type &#x5B;class &#x5B;LMyBean;] and content type &#x5B;application/json;charset=UTF-8]
	at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:110)
	at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:572)
	at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:530)
	at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:237)
</pre></div>


<h2 class="wp-block-heading">SOLUTION</h2>



<p>If the content type is JSON, add the following dependency:-</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: xml; title: ; notranslate">
&lt;dependency&gt;
    &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
    &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
    &lt;version&gt;2.6.0&lt;/version&gt;
&lt;/dependency&gt;
</pre></div><p>The post <a rel="nofollow" href="https://myshittycode.com/2015/10/01/rest-template-could-not-extract-response-no-suitable-httpmessageconverter-found-for-response-type-x-and-content-type-applicationjsoncharsetutf-8/">Rest Template: Could Not Extract Response &#8211; No Suitable HttpMessageConverter Found for Response Type [X] and Content Type [application/json;charset=UTF-8]</a> appeared first on <a rel="nofollow" href="https://myshittycode.com">My Shitty Code</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://myshittycode.com/2015/10/01/rest-template-could-not-extract-response-no-suitable-httpmessageconverter-found-for-response-type-x-and-content-type-applicationjsoncharsetutf-8/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">848</post-id>	</item>
		<item>
		<title>Java: Invoking Secured Web Service with JSESSIONID</title>
		<link>https://myshittycode.com/2013/12/29/java-invoking-secured-web-service-with-jsessionid/</link>
					<comments>https://myshittycode.com/2013/12/29/java-invoking-secured-web-service-with-jsessionid/#respond</comments>
		
		<dc:creator><![CDATA[Shitty Author]]></dc:creator>
		<pubDate>Sun, 29 Dec 2013 17:04:54 +0000</pubDate>
				<category><![CDATA[Programming Language]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Rest]]></category>
		<category><![CDATA[Spring Security]]></category>
		<guid isPermaLink="false">http://myshittycode.com/?p=284</guid>

					<description><![CDATA[<p>PROBLEM I wrote a JSP custom tag that invokes a secured web service within the same application to perform some evaluation. This custom tag is only used in the secured views where the user has successfully authenticated against Spring Security, and they have access to these views. The secured web service is also guarded by [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://myshittycode.com/2013/12/29/java-invoking-secured-web-service-with-jsessionid/">Java: Invoking Secured Web Service with JSESSIONID</a> appeared first on <a rel="nofollow" href="https://myshittycode.com">My Shitty Code</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">PROBLEM</h2>



<p>I wrote a JSP custom tag that invokes a secured web service within the same application to perform some evaluation. This custom tag is only used in the secured views where the user has successfully authenticated against Spring Security, and they have access to these views. The secured web service is also guarded by Spring Security.</p>



<p>My custom tag implementation looks something like this:-</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: java; title: ; notranslate">
public int doStartTag() throws JspException {

	...

	HttpClient httpclient = HttpClientBuilder.create().build();

	HttpGet httpGet = new HttpGet(url);

	log.debug(&quot;Before executing HTTP Get...&quot;);

	HttpResponse response = httpclient.execute(httpGet);

	int statusCode = response.getStatusLine().getStatusCode();

	log.debug(&quot;Status Code: &quot; + statusCode);

	return statusCode == HttpStatus.SC_OK ? EVAL_BODY_INCLUDE : SKIP_BODY;
}
</pre></div>


<p>The goal here is&#8230; if the response code from the secured web service is a <b>200 OK</b>, then the custom tag will evaluate its body and include the content. Otherwise, it will hide it.</p>



<p>My first attempt is to test the custom tag with an invalid value so that the secured web service will throw a <b>400 Bad Request</b>. The hope is the custom tag&#8217;s body will not get rendered in the view.</p>



<p>After getting authenticated successfully by Spring Security, the view containing this custom tag gets rendered. However, the response code always return a <b>200 OK</b> even though I should get a <b>400 Bad Request</b> from the secured web service.</p>



<p>After poking around, I decided to debug the console log&#8230; and this is what I see:-</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&#x5B;DEBUG] &#x5B;CheckEditAccess] &#x5B;hasAccess:72] - Before executing HTTP Get...
127.0.0.1 -  -  &#x5B;29/Dec/2013:10:18:14 -0600] &quot;GET /epic-app/api/request/invalid-key
HTTP/1.1&quot; 302 0
127.0.0.1 -  -  &#x5B;29/Dec/2013:10:18:14 -0600] &quot;GET /epic-app/;jsessionid=1vlnl6eloabfh12r9x465kvuq
HTTP/1.1&quot; 200 6311
&#x5B;DEBUG] &#x5B;CheckEditAccess] &#x5B;hasAccess:75] - Status Code: 200
</pre></div>


<p>As you can see, there are two calls made even though my custom tag only makes one call. The first call is made by the custom tag but the response code is a <b>302 Found</b>. Then, it gets directed to the next URL that returns a <b>200 OK</b>.</p>



<p>Why is this happening?</p>



<h2 class="wp-block-heading">SOLUTION</h2>



<p>The problem here is because when the custom tag invokes the secured web service call, it is not done within the same session where the user is already authenticated by Spring Security. Thus, Spring Security prevents the actual call to go through. Instead, Spring Security redirects the request to the login page first (which is located at <b>/epic-app</b> in this case). As a result, the custom tag will receive a <b>200 OK</b> from the login page instead of the response code from the secured web service.</p>



<p>To fix this, we need to send the session ID with the HTTP Get before executing it:-</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: java; title: ; notranslate">
public int doStartTag() throws JspException {

	...

	CookieStore cookieStore = new BasicCookieStore();
    BasicClientCookie cookie = new BasicClientCookie(&quot;JSESSIONID&quot;, pageContext.getSession().getId());
    cookieStore.addCookie(cookie);

	// very important to set the domain, otherwise this will not work!
    cookie.setDomain(request.getServerName());

    cookieStore.addCookie(cookie);

    HttpClient httpclient = HttpClientBuilder.create().setDefaultCookieStore(cookieStore).build();

	HttpGet httpGet = new HttpGet(url);

	log.debug(&quot;Before executing HTTP Get...&quot;);

	HttpResponse response = httpclient.execute(httpGet);

	int statusCode = response.getStatusLine().getStatusCode();

	log.debug(&quot;Status Code: &quot; + statusCode);

	return statusCode == HttpStatus.SC_OK ? EVAL_BODY_INCLUDE : SKIP_BODY;
}
</pre></div>


<p>When I try it again, now I&#8217;m getting the intended <b>400 Bad Request</b> from the secured web service due to input validation error.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&#x5B;DEBUG] &#x5B;CheckEditAccess] &#x5B;hasAccess:72] - Before executing HTTP Get...
127.0.0.1 -  -  &#x5B;29/Dec/2013:10:45:19 -0600] &quot;GET /epic-app/api/request/invalid-key
HTTP/1.1&quot; 400 0
&#x5B;DEBUG] &#x5B;CheckEditAccess] &#x5B;hasAccess:73] - Status Code: 400
</pre></div><p>The post <a rel="nofollow" href="https://myshittycode.com/2013/12/29/java-invoking-secured-web-service-with-jsessionid/">Java: Invoking Secured Web Service with JSESSIONID</a> appeared first on <a rel="nofollow" href="https://myshittycode.com">My Shitty Code</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://myshittycode.com/2013/12/29/java-invoking-secured-web-service-with-jsessionid/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">284</post-id>	</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Database Caching 58/71 queries in 0.014 seconds using Disk

Served from: myshittycode.com @ 2026-02-17 09:11:31 by W3 Total Cache
-->