The proxy server evaluates the user request according to the filtering rules for ex: the filters may IPaddress or protocol. If the requests is validated by filter, the proxy server provide resources by connecting to the relevant server and requesting the service on behalf of the client.
proxy options in run time settings:
1)No Proxy: All vusers should use direct connections to the internet so the connection made without proxy
2) Obtain proxy settings from the default browser : All vusers use the proxy settings of the default browser from the machine upon which they running
3) use custom proxy: All vusers use a custom proxy server. you can supply the actual proxy server details in runtime settings some times the request doesn't identify the proxy settings at that time we can
write manually
To supply the details of the server that is IPaddress or hostname, port no. You can specify one proxy server for all HTTP sites.
After providing proxy information , you can specify authentication information for proxy servers
To find the error like Error -26547: Authentication Required
This error occurs bcz our request not connect to the server so we can useweb_set_user()
syntax:
int web_set_user(const char * username, const char * password, const cahr *host:port);
Example:
web_set_user("dashwood","myaccount","student:8080");
In the above example dashwood is username of the server
myaccount is password of the server , student is hostname of the server machine and 8080 is port no of the server machine
EX:
vuser_init()
{
web_set_proxy("student:8080");
web_set_user("dashwood","myaccount","student:8080");
}
web_set_proxy() is a service function it forward the user request to the particular proxy server
web_set_proxy("student:8080");
web_set_user("dashwood","myaccount","student:8080"); These functions also write in before web_url() and web_submit_data()
web_set_user() is overrides the runtime proxy authentication settings for username and password. This function is supported for all web scripts and WAP scripts running in HTTP mode only.
proxy options in run time settings:
1)No Proxy: All vusers should use direct connections to the internet so the connection made without proxy
2) Obtain proxy settings from the default browser : All vusers use the proxy settings of the default browser from the machine upon which they running
3) use custom proxy: All vusers use a custom proxy server. you can supply the actual proxy server details in runtime settings some times the request doesn't identify the proxy settings at that time we can
write manually
To supply the details of the server that is IPaddress or hostname, port no. You can specify one proxy server for all HTTP sites.
After providing proxy information , you can specify authentication information for proxy servers
To find the error like Error -26547: Authentication Required
This error occurs bcz our request not connect to the server so we can useweb_set_user()
syntax:
int web_set_user(const char * username, const char * password, const cahr *host:port);
Example:
web_set_user("dashwood","myaccount","student:8080");
In the above example dashwood is username of the server
myaccount is password of the server , student is hostname of the server machine and 8080 is port no of the server machine
EX:
vuser_init()
{
web_set_proxy("student:8080");
web_set_user("dashwood","myaccount","student:8080");
}
web_set_proxy() is a service function it forward the user request to the particular proxy server
web_set_proxy("student:8080");
web_set_user("dashwood","myaccount","student:8080"); These functions also write in before web_url() and web_submit_data()
web_set_user() is overrides the runtime proxy authentication settings for username and password. This function is supported for all web scripts and WAP scripts running in HTTP mode only.