• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
A question of UrlAccess, https and proxy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: OSX & CFM & IPv6 ?
  • Next by Date: Re: OSX & CFM & IPv6 ?
  • Previous by thread: Re: OSX & CFM & IPv6 ?
  • Next by thread: Sending Fax/SMS ?
  • Index(es):
    • Date
    • Thread