Set Header

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Example)
 
(One intermediate revision by one user not shown)
Line 45: Line 45:
 
'''If-Range'''
 
'''If-Range'''
  
If-Unmodified-Since
+
'''If-Unmodified-Since'''
  
 
'''Max-Forwards'''
 
'''Max-Forwards'''
Line 74: Line 74:
  
  
'''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 ==
Line 88: Line 89:
  
  
Running the scripts changes the Accept-Language header request to ja, which is the Japanese.
+
Running the scripts changes the Accept-Language header request to the value ja, which is the Japanese.
  
  
 
[[File:setheader.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