Set Header
(Created page with "Set Header is a Settings Command in the Professional edition of UBot Studio. This command sets the header for future browser requests. The command acce...") |
|||
(4 intermediate revisions by one user not shown) | |||
Line 5: | Line 5: | ||
The command accepts the following header requests: | The command accepts the following header requests: | ||
− | '''Accept | + | '''Accept''' |
− | Accept-Charset | + | '''Accept-Charset''' |
− | Accept-Encoding | + | '''Accept-Encoding''' |
− | Accept-Language | + | '''Accept-Language''' |
− | Accept-Datetime | + | '''Accept-Datetime''' |
− | Authorization | + | '''Authorization''' |
− | Cache-Control | + | '''Cache-Control''' |
− | Connection | + | '''Connection''' |
− | Cookie | + | '''Cookie''' |
− | Content-Length | + | '''Content-Length''' |
− | Content-MD5 | + | '''Content-MD5''' |
− | Content-Type | + | '''Content-Type''' |
− | Date | + | '''Date''' |
− | Expect | + | '''Expect''' |
− | From | + | '''From''' |
− | Host | + | '''Host''' |
− | If-Match | + | '''If-Match''' |
− | If-Modified-Since | + | '''If-Modified-Since''' |
− | If-None-Match | + | '''If-None-Match''' |
− | If-Range | + | '''If-Range''' |
− | If-Unmodified-Since | + | '''If-Unmodified-Since''' |
− | Max-Forwards | + | '''Max-Forwards''' |
− | Origin | + | '''Origin''' |
− | Pragma | + | '''Pragma''' |
− | Proxy-Authorization | + | '''Proxy-Authorization''' |
− | Range | + | '''Range''' |
− | Referrer | + | '''Referrer''' |
− | TE | + | '''TE''' |
− | User-Agent | + | '''User-Agent''' |
− | Upgrade | + | '''Upgrade''' |
− | Via | + | '''Via''' |
− | Warning''' | + | '''Warning''' |
− | For more information on how headers work, [ | + | For more information on how headers work, [http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html|please see here.] |
− | ''' | + | '''Name of the Header:''' Header who's value is being set. |
+ | |||
+ | '''Desired Value of the Header:''' The value the header is being set to. | ||
− | |||
== Example == | == Example == | ||
<pre> | <pre> | ||
− | set | + | set header("Accept-Language","ja") |
− | navigate(" | + | wait(1) |
+ | navigate("https://www.whatismybrowser.com/detect/what-http-headers-is-my-browser-sending","Wait") | ||
</pre> | </pre> | ||
− | Running the scripts | + | Running the scripts changes the Accept-Language header request to the value ja, which is the Japanese. |
− | [[File: | + | [[File:setheader.jpg]] |
Latest revision as of 18:06, 20 October 2015
Set Header is a Settings Command in the Professional edition of UBot Studio.
This command sets the header for future browser requests.
The command accepts the following header requests:
Accept
Accept-Charset
Accept-Encoding
Accept-Language
Accept-Datetime
Authorization
Cache-Control
Connection
Cookie
Content-Length
Content-MD5
Content-Type
Date
Expect
From
Host
If-Match
If-Modified-Since
If-None-Match
If-Range
If-Unmodified-Since
Max-Forwards
Origin
Pragma
Proxy-Authorization
Range
Referrer
TE
User-Agent
Upgrade
Via
Warning
For more information on how headers work, see here.
Name of the Header: Header who's value is being set.
Desired Value of the Header: The value the header is being set to.
[edit] Example
set header("Accept-Language","ja") wait(1) navigate("https://www.whatismybrowser.com/detect/what-http-headers-is-my-browser-sending","Wait")
Running the scripts changes the Accept-Language header request to the value ja, which is the Japanese.