Question : proxy issue and httpwebrequest

see code. this worked before, but seems like the admin has changed the proxy settings. Now when i use IE and browse to the site i get this warning (see below). Before there was no warning. I tried to add the site as trusted site, but this doesn't work.

Do i need to:

ask admin to add the website to the proxy settings?
change vb.net and what should be changed?
change a setting in IE? (i'm now sure if httpwebrequest uses any settings of IE)







============================

There is a problem with this website's security certificate.
 
   
 he security certificate presented by this website was not issued by a trusted certificate authority.

Security certificate problems may indicate an attempt to fool you or intercept any data you send to the server.  
We recommend that you close this webpage and do not continue to this website.  
Click here to close this webpage.  
Continue to this website (not recommended).  
 More information


If you arrived at this page by clicking a link, check the website address in the address bar to be sure that it is the address you were expecting.
When going to a website with an address such as https://example.com, try adding the 'www' to the address, https://www.example.com.
If you choose to ignore this error and continue, do not enter private information into the website.

For more information, see "Certificate Errors" in Internet Explorer Help.
 
1:
2:
3:
4:
Dim rd As XmlTextReader
Dim wrq As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("https://website")
wrq.Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials
rd = New XmlTextReader(wrq.GetResponse.GetResponseStream)

Answer : proxy issue and httpwebrequest

Hi obad62,

first there's no 'readRowData' in the code you posted so I guess it's a type and should be 'readRawData' - anyhow, QDataStream::readRawData is declared as 'int QDataStream::readRawData ( char * s, int len  )', so you have to pass a pointer to a 'char'-buffer and the size of the buffer. 'readRawData' then will fill the buffer with the loaded data and return the number of loaded bytes as 'int'.

BTW: You wrote you 'need to read binary data', but your code seems to be written to read string line by line from a text file. If you want to read a text file IMO you should use 'QTextStream' and its function 'readLine' instead of 'QDataStream'.

Hope that helps,

ZOPPO
Random Solutions  
 
programming4us programming4us