<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" data-hsystem="true"></head>
<body><style>p{margin: 0;padding: 0;}

</style>
<p>Actually, it appears to be an LWP issue. Not sure if it's a bug or a feature
but I tried it this way and it worked:</p>
<p> </p>
<p>my $req = HTTP::Request->new( 'POST', $url );<br>$req->content(
$json_string );<br>my $response = $ua->request( $req );</p>
<p> </p>
<p>However, this does not:</p>
<pre class="code darkTheme"><span class="line"><span class="token
keyword">my</span> <span class="token variable">$response</span> <span class="token operator">=</span> <span class="token variable">$ua</span><span class="token operator">-</span><span class="token operator">></span>post<span class="token punctuation">(</span><span class="token
string">"</span></span><span class="destinationProtocol">https://</span><span class="destinationHost">api-sandbox.networkforgood.org</span><span class="destinationUriTemplate"><span class="uriTemplate"><span class="uriTemplateSlash">/</span>access<span class="uriTemplateSlash">/</span>rest<span class="uriTemplateSlash">/</span>token</span></span><span class="line"><span class="token string">"</span><span class="token punctuation">,</span> Content
<span class="token operator">=</span><span class="token operator">></span>
<span class="token variable">$json_string</span><span class="token
punctuation">)</span><span class="token punctuation">;</span></span>
</pre>
<p><br><br>On Wed, 30 Dec 2015 10:51:52 -0600, Steven Lembark
<lembark@wrkhors.com> wrote:</p>
<blockquote style="border-left: 2px solid #000000; padding-right: 0px;
padding-left: 5px; margin-left: 5px; margin-right: 0px;">On Mon, 28 Dec 2015
14:13:07 -0600<br> richard@rushlogistics.com wrote:<br><br> >  
<body><br> >     <div id="content"><br> >       <p
class="heading1">Request Error</p><br> >       <p>The
server encountered an error processing the request. See server logs for more
details.</p><br> >     </div><br> >  
</body><br><br> 404 == Not Found == they cannot map your path onto
anything they handle.<br><br> Odd that you got the server error, which is
normally in the 500's.<br><br> I love their remedy: Go check the logs.<br><br>
I'd call/email the support line at whomever you are dealing with and<br> ask
them: if you have verified that the host exists (e.g., with <br> a browser or
telnet to port 80 on the server) and are following their<br> rules for the path
then it's on them to tell you what is wrong with<br> the request.<br><br> --
<br> Steven Lembark 3646 Flora Pl<br> Workhorse Computing St Louis, MO 63110<br>
lembark@wrkhors.com +1 888 359 3508<br>
_______________________________________________<br> Chicago-talk mailing
list<br> Chicago-talk@pm.org<br>
http://mail.pm.org/mailman/listinfo/chicago-talk<br>
</blockquote>
<p><br><br></p>

</body>
</html>