A question of UrlAccess, https and proxy
A question of UrlAccess, https and proxy
- Subject: A question of UrlAccess, https and proxy
- From: "ben peng" <email@hidden>
- Date: Mon, 14 Apr 2003 16:52:54 -0800
Hi all:
I have some trouble about using UrlAccessManage on Mac OSX 10.1.
through a proxy with Authentication.
I send a Get method to an HTTPS page, then it popup a dialog to input
the username and password. If the user and password is right, I can get
results successful. But if the username or password is wrong, it crash at
once. the crash is happen in the URLIdle.
I test the sample code from apple site, it has same problem.
the following is some of my code, who can help me?
DoGet()
{
OSStatus theErr = noErr;
theErr = ::URLNewReference(url, &m_UrlReference);
if (theErr != noErr)
{
return;
}
::URLSetProperty(m_UrlReference, kURLHTTPRequestMethod, (void*)"GET",
3);
if (IsHTTPProxyOn())
{
char* theProxy = GetURLProxyAddr();
::URLSetProperty(m_UrlReference, kURLHTTPUserAgent, theProxy,
strlen(theProxy));
}
gDone = FALSE;
theErr = ::URLOpen(m_UrlReference, NULL, kURLDisplayAuthFlag,
gURLAccessCallBackUPP, kURLAllEventsMask, this);
}
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.