I know about SetProxyMode... but how to I set the proxy? There is no function for that. I thought that make it used a global proxy and I could set it with wxURL::SetDefaultProxy(_T("127.0.0.1:8888"));, but that doesn't work.
I really want my program to be seen by Fiddler for debugging purposes, and I need to set the proxy to the one above to do so.
how do I use a proxy with wxhttp?
hi ninja,
this is a really intetresting post.
First of all, is interesting that the documentation don't talk about the SetProxyMode method of wxHTTP.
It is undocumented on the official documentation, probabvly becouse it do nothing.
Looking wxHTTP 2.8.9, and 2.9.0, it only set the "m_proxy_mode" protected boolean, but this variable is no more used in any other place, and i don't see any accessor to retrieve it.
Then on the net you find a nice wiki page that talk about:
void SetProxyMode(bool on)
Set whether or not to use a proxy.
Hehe, but don't show in any place how to use it becouse it do nothing actually.
wxURL::SetDefaultProxy and wxURL::SetProxy are instead well implemented, they should allow a kind of tunneling through the proxy channel.
Try something like
wxURL::SetDefaultProxy("65.111.168.207:3128");
wxURL url("http://noticket.no.funpic.de/license/check.php?key=abcd");
etc etc
greetings
this is a really intetresting post.
First of all, is interesting that the documentation don't talk about the SetProxyMode method of wxHTTP.
It is undocumented on the official documentation, probabvly becouse it do nothing.
Looking wxHTTP 2.8.9, and 2.9.0, it only set the "m_proxy_mode" protected boolean, but this variable is no more used in any other place, and i don't see any accessor to retrieve it.
Then on the net you find a nice wiki page that talk about:
void SetProxyMode(bool on)
Set whether or not to use a proxy.
Hehe, but don't show in any place how to use it becouse it do nothing actually.
wxURL::SetDefaultProxy and wxURL::SetProxy are instead well implemented, they should allow a kind of tunneling through the proxy channel.
Try something like
wxURL::SetDefaultProxy("65.111.168.207:3128");
wxURL url("http://noticket.no.funpic.de/license/check.php?key=abcd");
etc etc
greetings
spectrum