Hi
I wonder if anyone can help me? I've spent some time on this problem and I'm pretty stuck.
I work in a school and I've developed a script which allows teachers to recommend webpages to students. The script where the teacher enters the webpage address is supposed to fetch the page from the Internet and store it in a local database so that students can search it. However, the script can't seem to get outside the school's proxy server to open the web page.
I'm using fsockopen() to connect to the proxy server. The school's server is IIS. If I use any kind of address other than the IP address the proxy rejects the connection.
Once I've connected using fsockopen(), I then try to put in a request for an external url using fputs('GET...'). The only reply I get is a 407 (Proxy Authentication) error from the proxy.
I have the username and password to log on to the proxy but I can't seem to figure out where or when to do this. I've tried to use them to create the connection with fsockopen('username:password@IPaddress) but the proxy rejects this.
If anyone can help I'd be really grateful!