add_unredirected_header(keyvaladds header information to request that will not be added to redirected requests key and val have the same meaning as for add_header( get_data(returns the request data (if anyr get_full_url(returns the full url of request get_host(returns the host to which the request will be sent get_method(returns the http methodwhich is either 'getor 'postr get_origin_req_host(returns the request-host of the originating transaction get_selector(returns the selector part of the url (for example'/index html' get_type(returns the url type (for example'http' has_data(returns true if data is part of the request is_unverifiable(returns true if the request is unverifiable has_header(headerreturns true if the request has header header set_proxy(hosttypeprepares the request for connecting to proxy server this replaces the original host with host and the original type of the request with type the selector part of the url is set to the original url here is an example that uses request object to change the 'user-agentheader used by urlopen(you might use this if you wanted server to think you were making connection from internet explorerfirefoxor some other browser headers 'user-agent''mozilla/ (compatiblemsie windows nt net clr ) request(" urlopen(rf lib fl ff