<div dir="ltr">Yes. POST resolved the issue. In fact I was confused with WriteBody function and HttpEntity as well. Missed this minor mistake.<br><br>Thank you.<br></div><div class="gmail_extra"><br clear="all"><div><font style="font-family:arial,helvetica,sans-serif">--<a href="http://twitter.com/sarat" target="_blank">@sarat</a></font></div>


<br><br><div class="gmail_quote">On Mon, Sep 30, 2013 at 7:12 AM, Yoon, Youngsik <span dir="ltr"><<a href="mailto:youngsik.yoon@intel.com" target="_blank">youngsik.yoon@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







<div link="blue" vlink="purple" lang="JA">
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US">I didnít try the code.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US">Just think you should try pHttpRequest->SetMethod(NET_HTTP_METHOD_POST) instead of NET_HTTP_METHOD_GET.<u></u><u></u></span></p>


<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US"><u></u>†<u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US">Yoon<u></u><u></u></span></p>
<p class="MsoNormal"><a name="1416c8873251c0fc__MailEndCompose"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d" lang="EN-US"><u></u>†<u></u></span></a></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0mm 0mm 0mm">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"" lang="EN-US"> <a href="mailto:application-dev-bounces@lists.tizen.org" target="_blank">application-dev-bounces@lists.tizen.org</a> [mailto:<a href="mailto:application-dev-bounces@lists.tizen.org" target="_blank">application-dev-bounces@lists.tizen.org</a>]
<b>On Behalf Of </b>Sarath C<br>
<b>Sent:</b> Saturday, September 28, 2013 12:39 AM<br>
<b>To:</b> <a href="mailto:application-dev@lists.tizen.org" target="_blank">application-dev@lists.tizen.org</a><br>
<b>Subject:</b> [Tizen Application-dev] Issues with POST request<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><span lang="EN-US"><u></u>†<u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Helvetica","sans-serif"" lang="EN-US">I am facing problem with HTTP POST request. I could not find any help over Internet forums. I use following code for submitting the request to my web server
 but I says my request doesn't contain any post data.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Helvetica","sans-serif"" lang="EN-US"><u></u>†<u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Helvetica","sans-serif"" lang="EN-US"><u></u>†<u></u></span></p>
</div>
<div>
<p style="margin:0mm;margin-bottom:.0001pt"><span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">†††††††
</span></span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">pHttpRequest =
<span style="color:#931a68">const_cast</span><<span style="color:#006141">HttpRequest</span>*>(pHttpTransaction-><span style="color:#793d93">GetRequest</span>());<u></u><u></u></span></p>
<p style="margin:0mm;margin-bottom:.0001pt;min-height:15px"><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US"><u></u>†<u></u></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">†††††††
</span></span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">r = pHttpRequest-><span style="color:#793d93">SetUri</span>(requestUrl);<u></u><u></u></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">†††††††
</span></span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">TryCatch(r == E_SUCCESS, ,
<span style="color:#3933ff">"Failed to set the <u>uri</u>."</span>);<u></u><u></u></span></p>
<p style="margin:0mm;margin-bottom:.0001pt;min-height:15px"><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US"><u></u>†<u></u></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">†††††††
</span></span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">r = pHttpRequest-><span style="color:#793d93">SetMethod</span>(<span style="color:#0326cc">NET_HTTP_METHOD_GET</span>);<u></u><u></u></span></p>


<p style="margin:0mm;margin-bottom:.0001pt"><span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">†††††††
</span></span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">TryCatch(r == E_SUCCESS, ,
<span style="color:#3933ff">"Failed to set the method."</span>);<u></u><u></u></span></p>
<p style="margin:0mm;margin-bottom:.0001pt;min-height:15px"><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US"><u></u>†<u></u></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">†††††††
</span></span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">pHttpStringEntity =
<span style="color:#931a68">new</span> <span style="color:#793d93">HttpStringEntity</span>();<u></u><u></u></span></p>
<p style="margin:0mm;margin-bottom:.0001pt;min-height:15px"><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US"><u></u>†<u></u></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">†††††††
</span></span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">r = pHttpStringEntity-><span style="color:#793d93">Construct</span>(postData.<span style="color:#793d93">GetPointer</span>());<u></u><u></u></span></p>


<p style="margin:0mm;margin-bottom:.0001pt"><span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">†††††††
</span></span><span style="font-size:8.5pt;font-family:"Monaco","serif";color:#931a68" lang="EN-US">if</span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">( r == E_SUCCESS )<u></u><u></u></span></p>


<p style="margin:0mm;margin-bottom:.0001pt"><span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">†††††††††††††††
</span></span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">AppLog(</span><span style="font-size:8.5pt;font-family:"Monaco","serif";color:#3933ff" lang="EN-US">"<u>Http</u> Entity set - E_SUCCESS"</span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">);</span><span style="font-size:8.5pt;font-family:"Monaco","serif";color:#3933ff" lang="EN-US"><u></u><u></u></span></p>


<p style="margin:0mm;margin-bottom:.0001pt"><span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">†††††††
</span></span><span style="font-size:8.5pt;font-family:"Monaco","serif";color:#931a68" lang="EN-US">else</span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">
<span style="color:#931a68">if</span> (r == E_INVALID_ENCODING_RANGE)<u></u><u></u></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">†††††††††††††††
</span></span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">AppLog(</span><span style="font-size:8.5pt;font-family:"Monaco","serif";color:#3933ff" lang="EN-US">"<u>Http</u> Entity set - E_INVALID_ENCODING_RANGE"</span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">);</span><span style="font-size:8.5pt;font-family:"Monaco","serif";color:#3933ff" lang="EN-US"><u></u><u></u></span></p>


<p style="margin:0mm;margin-bottom:.0001pt"><span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">†††††††
</span></span><span style="font-size:8.5pt;font-family:"Monaco","serif";color:#931a68" lang="EN-US">else<u></u><u></u></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">†††††††††††††††
</span></span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">AppLog(</span><span style="font-size:8.5pt;font-family:"Monaco","serif";color:#3933ff" lang="EN-US">"<u>Http</u> entity set - E_SYSTEM"</span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">);</span><span style="font-size:8.5pt;font-family:"Monaco","serif";color:#3933ff" lang="EN-US"><u></u><u></u></span></p>


<p style="margin:0mm;margin-bottom:.0001pt;min-height:15px"><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US"><u></u>†<u></u></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">†††††††
</span></span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">r = pHttpRequest-><span style="color:#793d93">SetEntity</span>(*pHttpStringEntity);<u></u><u></u></span></p>
<p style="margin:0mm;margin-bottom:.0001pt;min-height:15px"><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US"><u></u>†<u></u></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">†††††††
</span></span><span style="font-size:8.5pt;font-family:"Monaco","serif";color:#931a68" lang="EN-US">if</span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">( r == E_SUCCESS)<u></u><u></u></span></p>


<p style="margin:0mm;margin-bottom:.0001pt"><span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">†††††††††††††††
</span></span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">AppLog(</span><span style="font-size:8.5pt;font-family:"Monaco","serif";color:#3933ff" lang="EN-US">"SetEntiry = E_SUCCESS"</span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">);</span><span style="font-size:8.5pt;font-family:"Monaco","serif";color:#3933ff" lang="EN-US"><u></u><u></u></span></p>


<p style="margin:0mm;margin-bottom:.0001pt;min-height:15px"><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US"><u></u>†<u></u></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">†††††††
</span></span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">r = pHttpTransaction-><span style="color:#793d93">Submit</span>();<u></u><u></u></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">†††††††
</span></span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">TryCatch(r == E_SUCCESS, ,
</span><span style="font-size:8.5pt;font-family:"Monaco","serif";color:#3933ff" lang="EN-US">"Failed to submit the HttpTransaction."</span><span style="font-size:8.5pt;font-family:"Monaco","serif"" lang="EN-US">);</span><span style="font-size:8.5pt;font-family:"Monaco","serif";color:#3933ff" lang="EN-US"><u></u><u></u></span></p>


</div>
<p class="MsoNormal"><span lang="EN-US"><u></u>†<u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">--†<br>
Sarath C<br>
Sent with <a href="http://airmailapp.info/tracking" target="_blank">Airmail</a><u></u><u></u></span></p>
</div></div></div>
</div>

</blockquote></div><br></div>