Set Header

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(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, [please see here.|http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html]
+
For more information on how headers work, [http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html|please see here.]
  
  
  
'''Referrer Url:''' The referral url data will be sent to the website in the specified browser window.
+
'''Name of the Header:''' Header who's value is being set.
 +
 
 +
'''Desired Value of the Header:''' The value the header is being set to.
  
It will allow your bot to communicate with the website in order to let it know the url you are coming from.
 
  
 
== Example ==
 
== Example ==
 
<pre>
 
<pre>
  
set referrer("http://www.tumblr.com/dashboard")
+
set header("Accept-Language","ja")
navigate("http://www.whatismyreferer.com/", "Wait")
+
wait(1)
 +
navigate("https://www.whatismybrowser.com/detect/what-http-headers-is-my-browser-sending","Wait")
  
 
</pre>
 
</pre>
  
  
Running the scripts sets the referrer to the tumblr url.
+
Running the scripts changes the Accept-Language header request to the value ja, which is the Japanese.
  
  
[[File:ref.jpg]]
+
[[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.


Setheader.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox