<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: отослать POST запрос и получить ответ]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9256&amp;type=atom" />
	<updated>2014-02-13T16:08:52Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9256</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: отослать POST запрос и получить ответ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=80041#p80041" />
			<content type="html"><![CDATA[<p>Попробовал так:</p><div class="codebox"><pre><code>URL := &quot;ссылка на гугл&quot;

headers := &quot;audio/x-flac; rate=16000&quot;

file := &quot;c:\voice.flac&quot;
HTTPRequest(URL, file, headers)
msgbox, % file
Return

#include httprequest.ahk</code></pre></div><p>Получил 404 ошибку с текстом &quot;......Content-type should be of the form: audio/xxx; rate=yyy&quot;</p><p>Где ошибка?</p>]]></content>
			<author>
				<name><![CDATA[akman]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31754</uri>
			</author>
			<updated>2014-02-13T16:08:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=80041#p80041</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: отослать POST запрос и получить ответ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=80031#p80031" />
			<content type="html"><![CDATA[<p>Здравствуйте.</p><p>Как можно реализовать на AHK запрос на сервер и ответ в MsgBox?</p><p>Как я понимаю требуется использовать библиотеку httpQuery.ahk</p><div class="codebox"><pre><code>voice := &quot;voice.flac&quot;; звук который нужно передать
Url := &quot;ссылка на гугл&quot;
httpQUERY(HtmlQuellcode:=&quot;&quot;,Url); где здесь в параметрах передачи записать переменную с звуковым файлом?
MsgBox, %rezultat%;
#include httpQuery.ahk</code></pre></div>]]></content>
			<author>
				<name><![CDATA[akman]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31754</uri>
			</author>
			<updated>2014-02-13T09:44:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=80031#p80031</id>
		</entry>
</feed>
