<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"MS ゴシック";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:"MS Pゴシック";
        panose-1:2 11 6 0 7 2 5 8 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@MS ゴシック";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
        {font-family:"\@MS Pゴシック";
        panose-1:2 11 6 0 7 2 5 8 2 4;}
@font-face
        {font-family:Monaco;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0mm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"MS Pゴシック";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0mm;
        mso-margin-bottom-alt:auto;
        margin-left:0mm;
        font-size:12.0pt;
        font-family:"MS Pゴシック";}
span.apple-tab-span
        {mso-style-name:apple-tab-span;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Arial","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:99.25pt 30.0mm 30.0mm 30.0mm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026">
<v:textbox inset="5.85pt,.7pt,5.85pt,.7pt" />
</o:shapedefaults></xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="JA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">I didn’t try the code.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Just think you should try pHttpRequest->SetMethod(NET_HTTP_METHOD_POST) instead of NET_HTTP_METHOD_GET.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Yoon<o:p></o:p></span></p>
<p class="MsoNormal"><a name="_MailEndCompose"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p> </o:p></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 lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif""> application-dev-bounces@lists.tizen.org [mailto:application-dev-bounces@lists.tizen.org]
<b>On Behalf Of </b>Sarath C<br>
<b>Sent:</b> Saturday, September 28, 2013 12:39 AM<br>
<b>To:</b> application-dev@lists.tizen.org<br>
<b>Subject:</b> [Tizen Application-dev] Issues with POST request<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div id="bloop_customfont">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Helvetica","sans-serif"">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.<o:p></o:p></span></p>
</div>
<div id="bloop_customfont">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Helvetica","sans-serif""><o:p> </o:p></span></p>
</div>
<div id="bloop_customfont">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Helvetica","sans-serif""><o:p> </o:p></span></p>
</div>
<div id="bloop_customfont">
<p style="margin:0mm;margin-bottom:.0001pt"><span class="apple-tab-span"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif"">       
</span></span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif"">pHttpRequest =
<span style="color:#931A68">const_cast</span><<span style="color:#006141">HttpRequest</span>*>(pHttpTransaction-><span style="color:#793D93">GetRequest</span>());<o:p></o:p></span></p>
<p style="margin:0mm;margin-bottom:.0001pt;min-height: 15px"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif""><o:p> </o:p></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span class="apple-tab-span"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif"">       
</span></span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif"">r = pHttpRequest-><span style="color:#793D93">SetUri</span>(requestUrl);<o:p></o:p></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span class="apple-tab-span"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif"">       
</span></span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif"">TryCatch(r == E_SUCCESS, ,
<span style="color:#3933FF">"Failed to set the <u>uri</u>."</span>);<o:p></o:p></span></p>
<p style="margin:0mm;margin-bottom:.0001pt;min-height: 15px"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif""><o:p> </o:p></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span class="apple-tab-span"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif"">       
</span></span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif"">r = pHttpRequest-><span style="color:#793D93">SetMethod</span>(<span style="color:#0326CC">NET_HTTP_METHOD_GET</span>);<o:p></o:p></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span class="apple-tab-span"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif"">       
</span></span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif"">TryCatch(r == E_SUCCESS, ,
<span style="color:#3933FF">"Failed to set the method."</span>);<o:p></o:p></span></p>
<p style="margin:0mm;margin-bottom:.0001pt;min-height: 15px"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif""><o:p> </o:p></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span class="apple-tab-span"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif"">       
</span></span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif"">pHttpStringEntity =
<span style="color:#931A68">new</span> <span style="color:#793D93">HttpStringEntity</span>();<o:p></o:p></span></p>
<p style="margin:0mm;margin-bottom:.0001pt;min-height: 15px"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif""><o:p> </o:p></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span class="apple-tab-span"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif"">       
</span></span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif"">r = pHttpStringEntity-><span style="color:#793D93">Construct</span>(postData.<span style="color:#793D93">GetPointer</span>());<o:p></o:p></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span class="apple-tab-span"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif"">       
</span></span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:#931A68">if</span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif"">( r == E_SUCCESS )<o:p></o:p></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span class="apple-tab-span"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:black">               
</span></span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:black">AppLog(</span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:#3933FF">"<u>Http</u> Entity set - E_SUCCESS"</span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:black">);</span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:#3933FF"><o:p></o:p></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span class="apple-tab-span"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif"">       
</span></span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:#931A68">else</span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif"">
<span style="color:#931A68">if</span> (r == E_INVALID_ENCODING_RANGE)<o:p></o:p></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span class="apple-tab-span"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:black">               
</span></span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:black">AppLog(</span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:#3933FF">"<u>Http</u> Entity set - E_INVALID_ENCODING_RANGE"</span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:black">);</span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:#3933FF"><o:p></o:p></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span class="apple-tab-span"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:black">       
</span></span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:#931A68">else<o:p></o:p></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span class="apple-tab-span"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:black">               
</span></span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:black">AppLog(</span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:#3933FF">"<u>Http</u> entity set - E_SYSTEM"</span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:black">);</span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:#3933FF"><o:p></o:p></span></p>
<p style="margin:0mm;margin-bottom:.0001pt;min-height: 15px"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif""><o:p> </o:p></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span class="apple-tab-span"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif"">       
</span></span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif"">r = pHttpRequest-><span style="color:#793D93">SetEntity</span>(*pHttpStringEntity);<o:p></o:p></span></p>
<p style="margin:0mm;margin-bottom:.0001pt;min-height: 15px"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif""><o:p> </o:p></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span class="apple-tab-span"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif"">       
</span></span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:#931A68">if</span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif"">( r == E_SUCCESS)<o:p></o:p></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span class="apple-tab-span"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:black">               
</span></span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:black">AppLog(</span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:#3933FF">"SetEntiry = E_SUCCESS"</span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:black">);</span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:#3933FF"><o:p></o:p></span></p>
<p style="margin:0mm;margin-bottom:.0001pt;min-height: 15px"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif""><o:p> </o:p></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span class="apple-tab-span"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif"">       
</span></span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif"">r = pHttpTransaction-><span style="color:#793D93">Submit</span>();<o:p></o:p></span></p>
<p style="margin:0mm;margin-bottom:.0001pt"><span class="apple-tab-span"><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:black">       
</span></span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:black">TryCatch(r == E_SUCCESS, ,
</span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:#3933FF">"Failed to submit the HttpTransaction."</span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:black">);</span><span lang="EN-US" style="font-size:8.5pt;font-family:"Monaco","serif";color:#3933FF"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">-- <br>
Sarath C<br>
Sent with <a href="http://airmailapp.info/tracking">Airmail</a><o:p></o:p></span></p>
</div>
</body>
</html>