C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 08-04-2009, 11:46 PM   #1
Registered User
 
Join Date: Aug 2009
Posts: 3
Connect through proxy: Authentication Required

Hello all,

Can you help me in my little problem?
I trying to write program that will be connect to the internet but, but there is a http proxy server in my network and I have problem with authentication on it... For more details you can see qoute below:

Quote:
GET http://www.google.com:80/index HTTP/1.1

HTTP/1.0 407 Proxy Authentication Required
Server: squid
Date: Wed, 05 Aug 2009 05:43:17 GMT
Content-Type: text/html
Content-Length: 1095
X-Squid-Error: ERR_LIMIT_DENIED 0
Proxy-Authenticate: NTLM
Proxy-Authenticate: Basic realm="MERA proxy-caching web server"
X-Cache: MISS from proxy.te.mera.ru
X-Cache-Lookup: NONE from proxy.te.mera.ru:8080
Via: 1.0 proxy.te.mera.ru:8080 (squid)
Connection: close
I have a login and password on this proxy, but I don't know how I need to send it to proxy server... Can anybody help me? (8
Marmot is offline   Reply With Quote
Old 08-05-2009, 03:00 AM   #2
EOP
Registered User
 
Join Date: Jan 2008
Posts: 45
Quote:
The NTLM Authentication Protocol and Security Support Provider
The NTLM Authentication Protocol and Security Support Provider
EOP is offline   Reply With Quote
Old 08-05-2009, 03:20 AM   #3
Registered User
 
Join Date: Aug 2009
Posts: 3
:'(
this is an extreme measure
At first I would like to know, could someone have similar problem and knows solution for that?
I think it's impossible that tere is no any functions and librarys that helps to connect via http proxy server
Marmot is offline   Reply With Quote
Old 08-05-2009, 10:38 AM   #4
Registered User
 
Join Date: Sep 2004
Location: California
Posts: 2,845
This is why people use libcurl instead of writing their own HTTP protocol code.
__________________
bit∙hub [bit-huhb] n. A source and destination for information.
bithub is offline   Reply With Quote
Old 08-09-2009, 11:25 PM   #5
Registered User
 
Join Date: Aug 2009
Posts: 3
thanks man.... but.. is there another way to solve my problem? (8
Marmot is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Though implementation problem Elysia C++ Programming 296 05-31-2008 01:02 PM
How to fix misaligned assignment statements in the source code? biggyK C++ Programming 28 07-16-2006 11:35 PM
NAQ: Everything you never wanted to know about CPP evildave C Programming 21 12-12-2005 10:56 AM
Client timed-out once on connect(), can never connect() again registering Networking/Device Communication 6 10-28-2003 03:46 PM
Problem building Quake source Silvercord Game Programming 14 01-25-2003 10:01 PM


All times are GMT -6. The time now is 08:24 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22