setting a http proxy in libsoup



Hi all,
 
Sorry I my question was already discussed.
I'm trying to learn how to use libsoup,
I'm using the version 2.26.0
 
I compiled the get.c test but when runing it as follows:
./get  -p <mylogin>:<mypasswor>@192.168.1.1 http://www.google.com
I got the following error  message
 
/: 2 Cannot resolve hostname
 
so I wrote my own test to check that the proxy is correclty set
please find attached the test source code.
 
the test output is:
 
 request_body :
 response_body :
 

proxy settings: username = (null)
password = (null)
host = (null)
port 0
when changing the URL to a local one ,i.e does not need the proxy server I got the response_body filled with the target page content.
 
could you help me please.
 
regards.
haithem.
 

Attachment: soup_proxy.c
Description: Binary data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]