HttpRequest methods syntax: Difference between revisions
m (Automatically generated page update) |
m (Automatically generated page update) |
||
Line 4: | Line 4: | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top:1px solid;"><span class="term">httpRequest</span><span class="literal">:[[AddField (HttpRequest subroutine)|AddField]]</span><span class="literal">(</span> <span class="term" title="String">fieldName</span><span class="comma">,</span> <span class="term" title="String">fieldValue</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">file</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Boolean">translate</span><span class="squareb">]</span><span class="literal">)</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top:1px solid;"><span class="term">httpRequest</span><span class="literal">:[[AddField (HttpRequest subroutine)|AddField]]</span><span class="literal">(</span> <span class="term" title="String">fieldName</span><span class="comma">,</span> <span class="term" title="String">fieldValue</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">file</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Boolean">translate</span><span class="squareb">]</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">httpRequest</span><span class="literal">:[[AddHeader (HttpRequest subroutine)|AddHeader]]</span><span class="literal">(</span> <span class="term" title="String">header</span><span class="comma">,</span> <span class="term" title="String">value</span><span class="literal">)</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">httpRequest</span><span class="literal">:[[AddHeader (HttpRequest subroutine)|AddHeader]]</span><span class="literal">(</span> <span class="term" title="String">header</span><span class="comma">,</span> <span class="term" title="String">value</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">httpRequest</span><span class="literal">:[[ | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">httpRequest</span><span class="literal">:[[AddLongstring (HttpRequest subroutine)|AddLongstring]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="Number">xlatFlag</span><span class="squareb">]</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">httpRequest</span><span class="literal">:[[AddXml (HttpRequest subroutine)|AddXml]]</span><span class="literal">(</span> <span class="term" title="XmlDoc">doc</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">options</span><span class="squareb">]</span><span class="literal">)</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">httpRequest</span><span class="literal">:[[AddXml (HttpRequest subroutine)|AddXml]]</span><span class="literal">(</span> <span class="term" title="XmlDoc">doc</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">options</span><span class="squareb">]</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentBoolean</span><span class="literal"> =</span> <span class="term">httpRequest</span><span class="literal">:[[AutoSendXmlContentType (HttpRequest property)|AutoSendXmlContentType]]</span> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentBoolean</span><span class="literal"> =</span> <span class="term">httpRequest</span><span class="literal">:[[AutoSendXmlContentType (HttpRequest property)|AutoSendXmlContentType]]</span> |
Revision as of 16:51, 21 June 2011
The syntax for each of the HttpRequest class methods is shown below.
Square brackets indicate optional elements of the method invocation. See also the notation conventions for methods and the List of HttpRequest methods.
httpRequest:AddField( fieldName, fieldValue, [file], [translate])
httpRequest:AddHeader( header, value)
httpRequest:AddLongstring( string, [xlatFlag])
httpRequest:AddXml( doc, [options])
%currentBoolean = httpRequest:AutoSendXmlContentType httpRequest:AutoSendXmlContentType = newBoolean
%number = httpRequest:FieldCount
%httpResponse = httpRequest:Get[( [[Port=] string], [[Cancel=] number])]
%number = httpRequest:HeaderCount
%currentString = httpRequest:Host httpRequest:Host = newString
%currentString = httpRequest:HttpVersion httpRequest:HttpVersion = newString
%currentLineEnd = httpRequest:LineEnd httpRequest:LineEnd = newLineEnd
%currentNumber = httpRequest:MaxRedirects httpRequest:MaxRedirects = newNumber
%currentBoolean = httpRequest:MultiPartFormEncoding httpRequest:MultiPartFormEncoding = newBoolean
%httpRequest = %(HttpRequest):New
%currentString = httpRequest:Page httpRequest:Page = newString
%currentNumber = httpRequest:Port httpRequest:Port = newNumber
%httpResponse = httpRequest:Post[( [[Port=] string], [[Cancel=] number])]
httpRequest:Print
%currentString = httpRequest:Protocol httpRequest:Protocol = newString
%currentString = httpRequest:Proxy httpRequest:Proxy = newString
httpRequest:RemoveAuthentication
httpRequest:RemoveProxy
%httpResponse = httpRequest:Send( [[Port=] string], [[Cancel=] number], - Method= string)
httpRequest:SetAuthentication( userID, password, realm)
%currentNumber = httpRequest:Timeout httpRequest:Timeout = newNumber
%currentString = httpRequest:URL httpRequest:URL = newString