<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to use JSL form of &amp;quot;POST&amp;quot; WEB data? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/236262#M46621</link>
    <description>&lt;P&gt;I SEE.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-11-25_22-16.png" style="width: 632px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20454i88AD0D34DE525C16/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-11-25_22-16.png" alt="2019-11-25_22-16.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Nov 2019 14:17:43 GMT</pubDate>
    <dc:creator>lwx228</dc:creator>
    <dc:date>2019-11-25T14:17:43Z</dc:date>
    <item>
      <title>How to use JSL form of "POST" WEB data?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/235699#M46498</link>
      <description>&lt;P&gt;After I learned to use JMP to download web page data, ga mother likes to use JMP to download web page data now, but it is more difficult to process the web page of POST.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get expert help: how to download data using JSL in the following way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-11-20_18-58.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20401i18101972CDD368A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-11-20_18-58.png" alt="2019-11-20_18-58.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;POST http://listxbrl.sse.com.cn/companyInfo/showBalance.do HTTP/1.1
Host: listxbrl.sse.com.cn
Connection: keep-alive
Content-Length: 54
Accept: */*
Origin: http://listxbrl.sse.com.cn
X-Requested-With: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: http://listxbrl.sse.com.cn/companyInfo/toCompanyInfo.do?stock_id=600007&amp;amp;report_period_id=5000

report_year=2018&amp;amp;stock_id=600007&amp;amp;report_period_id=5000&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I can do it with VBA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 11:11:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/235699#M46498</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2019-11-20T11:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL form of "POST" WEB data?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/235709#M46499</link>
      <description>I searched for-&lt;BR /&gt;Method("POST")&lt;BR /&gt;in the help file 、but found no similar code.</description>
      <pubDate>Wed, 20 Nov 2019 11:15:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/235709#M46499</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2019-11-20T11:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL form of "POST" WEB data?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/235892#M46525</link>
      <description>&lt;P&gt;Below is the VBA code, can be downloaded to get the page data.&lt;BR /&gt;But I still haven't been able to convert it into JSL code.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-11-21_13-08.png" style="width: 879px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20412iC409F9235B7A9C74/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-11-21_13-08.png" alt="2019-11-21_13-08.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Please give me help.Thank you very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;VBA:

Sub Main()
    Dim strText As String
    With CreateObject("MSXML2.XMLHTTP")
        .Open "POST", "http://listxbrl.sse.com.cn/companyInfo/showBalance.do", False
        .setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
        .Send "report_year=2018&amp;amp;stock_id=600007&amp;amp;report_period_id=5000"
        strText = .responsetext
        Debug.Print strText
    End With
    Cells(1, 1) = strText
End Sub&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 07:54:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/235892#M46525</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2019-11-21T07:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL form of "POST" WEB data?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/235970#M46545</link>
      <description>&lt;P&gt;I think the following might be close to what you need,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;request_headers = Associative Array();
request_headers["Content-type"] = "application/x-www-form-urlencoded";
	
query = Associative Array();
query["report_year"] = 2018;
query["stock_id"] = 600007;
query["period_id"] = 5000;

request = HTTP Request(
	Url( "http://listxbrl.sse.com.cn/companyInfo/showBalance.do" ),
	Method( "POST" ),
	Headers( request_headers ),
	QueryString( query )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Nov 2019 14:51:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/235970#M46545</guid>
      <dc:creator>Ryan_Gilmore</dc:creator>
      <dc:date>2019-11-21T14:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL form of "POST" WEB data?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/236012#M46565</link>
      <description>&lt;P class="_tgt transPara"&gt;Thank Ryan_Gilmore&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;!&lt;/P&gt;&lt;P class="_tgt transPara"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_tgt transPara"&gt;&lt;SPAN class="transSent"&gt;This approach still hasn't worked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="_tgt transPara"&gt;&lt;SPAN class="transSent"&gt;It seems that this form of POST method, JMP application is not yet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="_tgt transPara"&gt;&lt;SPAN class="transSent"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-11-22_08-03.png" style="width: 654px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20428iA3A82BC99EEF6964/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-11-22_08-03.png" alt="2019-11-22_08-03.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="_tgt transPara"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_tgt transPara"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 00:10:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/236012#M46565</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2019-11-22T00:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL form of "POST" WEB data?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/236063#M46576</link>
      <description>&lt;P&gt;Once the request has been created. you then need to issue the Send command, e.g.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;data = request &amp;lt;&amp;lt; Send;
If( request &amp;lt;&amp;lt; IsSuccess,
    json_data = Parse JSON( data );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Nov 2019 12:35:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/236063#M46576</guid>
      <dc:creator>Ryan_Gilmore</dc:creator>
      <dc:date>2019-11-22T12:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL form of "POST" WEB data?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/236188#M46599</link>
      <description>&lt;P&gt;My knowledge of the JMP approach is limited.&lt;BR /&gt;I can only imitate.Still no results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-11-23_08-01.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20438iF6C687C87C5560F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-11-23_08-01.png" alt="2019-11-23_08-01.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank Ryan_Gilmore!&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2019 00:09:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/236188#M46599</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2019-11-23T00:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL form of "POST" WEB data?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/236189#M46600</link>
      <description>get "DATA" of theta:&lt;BR /&gt;&lt;BR /&gt;" &amp;lt;!DOCTYPE html PUBLIC \!"-//W3C//DTD XHTML 1.0 Transitional//EN\!" \!"&lt;A href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\" target="_blank"&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\&lt;/A&gt;!"&amp;gt; &amp;lt;html xmlns=\!"&lt;A href="http://www.w3.org/1999/xhtml\" target="_blank"&gt;http://www.w3.org/1999/xhtml\&lt;/A&gt;!"&amp;gt; &amp;lt;head&amp;gt; &amp;lt;meta http-equiv=\!"Content-Type\!" content=\!"text/html; charset=utf-8\!" /&amp;gt;&lt;BR /&gt;……&lt;BR /&gt;&amp;lt;/p&amp;gt; &amp;lt;/body&amp;gt; &amp;lt;/html&amp;gt; "</description>
      <pubDate>Sat, 23 Nov 2019 00:12:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/236189#M46600</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2019-11-23T00:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL form of "POST" WEB data?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/236260#M46620</link>
      <description>&lt;P&gt;I notice that one of the parameters is incorrect. The code I suggested had "period_id" rather than "report_period_id" as shown in your original post. It's possible that may be contributing to the "500 Internal Server Error" message.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 13:16:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/236260#M46620</guid>
      <dc:creator>Ryan_Gilmore</dc:creator>
      <dc:date>2019-11-25T13:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL form of "POST" WEB data?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/236262#M46621</link>
      <description>&lt;P&gt;I SEE.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-11-25_22-16.png" style="width: 632px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20454i88AD0D34DE525C16/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-11-25_22-16.png" alt="2019-11-25_22-16.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 14:17:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/236262#M46621</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2019-11-25T14:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL form of "POST" WEB data?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/236263#M46622</link>
      <description>I just tried using the original VBA, continuing with ID 5000, and still being able to download.&lt;BR /&gt;"report_year=2018&amp;amp;stock_id=600007&amp;amp;report_period_id=5000"&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Nov 2019 14:03:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/236263#M46622</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2019-11-25T14:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL form of "POST" WEB data?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/236265#M46623</link>
      <description>&lt;P&gt;These lines of code,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;query = Associative Array();
query["report_year"] = 2018;
query["stock_id"] = 600007;
query["report_period_id"] = 5000;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;are used to construct the query parameter list in the URL, e.g.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;report_year=2018&amp;amp;stock_id=600007&amp;amp;report_period_id=5000&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In the original code I supplied, the code had&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;query["period_id"] = 5000;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;which would have given an incorrect query parameter list of&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;report_year=2018&amp;amp;stock_id=600007&amp;amp;period_id=5000&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 14:08:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/236265#M46623</guid>
      <dc:creator>Ryan_Gilmore</dc:creator>
      <dc:date>2019-11-25T14:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL form of "POST" WEB data?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/236274#M46625</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;SPAN class="skip"&gt;&lt;A target="_blank"&gt;perfect.&lt;/A&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Thank Ryan_Gilmore!&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-11-25_22-21.png" style="width: 919px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20455iB4C7975A49C9B600/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-11-25_22-21.png" alt="2019-11-25_22-21.png" /&gt;&lt;/span&gt;&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 14:24:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/236274#M46625</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2019-11-25T14:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL form of "POST" WEB data?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/236279#M46628</link>
      <description>&lt;P&gt;Using example in the thread, you'd want something like:&lt;/P&gt;
&lt;PRE&gt;query = Associative Array();
query["report_year"] = 2018;
query["stock_id"] = 600007;
query["period_id"] = 5000;

request = HTTP Request(
	Url( "http://listxbrl.sse.com.cn/companyInfo/showBalance.do" ),
	Method( "POST" ),
	Form( Fields(query) )
);

request &amp;lt;&amp;lt; Send;&lt;/PRE&gt;
&lt;P&gt;The Form message has been there since the beginning.&lt;/P&gt;
&lt;P&gt;It has Fields and Files sub parts to it. Both are associative arrays.&lt;/P&gt;
&lt;P&gt;In the "Fields" case it's name/value pairs where the value can be either character or a List of characters.&lt;/P&gt;
&lt;P&gt;In the "Files" case it's name/value pairs where the value can be either filename or a List of filenames.&lt;/P&gt;
&lt;P&gt;If only "Fields" is used, then the request header is automatically set to&amp;nbsp;&lt;SPAN&gt;application/x-www-form-urlencoded&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If "Fields" and "Files" (or just "Files") is used, then&amp;nbsp;the request header is automatically set to multipart/form-data.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'll update the thread with this information, too.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 14:36:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/236279#M46628</guid>
      <dc:creator>bryan_boone</dc:creator>
      <dc:date>2019-11-25T14:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL form of "POST" WEB data?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/236280#M46629</link>
      <description>Thanks for the help of the experts, so that I learned a lot of skills.Thanks!</description>
      <pubDate>Mon, 25 Nov 2019 14:56:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-form-of-quot-POST-quot-WEB-data/m-p/236280#M46629</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2019-11-25T14:56:33Z</dc:date>
    </item>
  </channel>
</rss>

