[SOLVED]The following code for setting proxy fails in case of manual proxy settings
What is wrong with the code:
if i use system proxy the error displayed is “connection refused”
and if i use manual proxy (proxy address being same) error displayed is “Host not found”
The proxy server is squid with proxy-address:172.16.28.11 and port:3128
Besides, it also doesn’t work for localhost proxy like the one created using tor or dynamic port forwarding!
- if(settDialog.ui->no_proxy->isChecked())
- {
- }
- else if(settDialog.ui->use_s_proxy->isChecked())
- {
- }
- else if(settDialog.ui->man_proxy->isChecked())
- {
- proxy.setHostName(settDialog.ui->proxy_addr->text());
- proxy.setPort(settDialog.ui->port_num->value());
- if(settDialog.ui->proxyType->currentIndex()==0)
- else if(settDialog.ui->proxyType->currentIndex()==1)
- else if(settDialog.ui->proxyType->currentIndex()==2)
- proxy.setHostName(settDialog.ui->username->text());
- proxy.setPassword(settDialog.ui->pwd->text());
- }
1 reply
You must log in to post a reply. Not a member yet? Register here!

