Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6224865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:44:30+00:00 2026-05-24T08:44:30+00:00

I am trying to use asiHttpRequest to handle HTTP Digest Authentication, I have two

  • 0

I am trying to use asiHttpRequest to handle HTTP Digest Authentication, I have two textfields, one is name and the other is password, when the user login with the correct name and password a label will display the auth and userid response string. Can anyone provide

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T08:44:30+00:00Added an answer on May 24, 2026 at 8:44 am

    Here is a sample code of how u can sent request to google for authentication. You can change it for digestion. Hope it helps.

        NSString *username = @"my.google.login@gmail.com";
        NSString *password = @"mypassword123";
        NSString *loginUrl = @"https://www.google.com/accounts/ClientLogin?client=NNW-Mac";
        NSString *source = @"NNW-Mac"; //let's fake NetNewsWire
        NSString *continueUrl = @"http://www.google.com";
    
        ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:[NSURL URLWithString: loginUrl]]; // log in & get cookies
        [request addRequestHeader: @"User-Agent" value: @"NetNewsWire/3.2b25 (Mac OS X; http://www.newsgator.com/Individuals/NetNewsWire/)"];
    
        [request setPostValue: username forKey: @"Email"];
        [request setPostValue: password forKey: @"Passwd"];
        [request setPostValue: @"reader" forKey: @"service"];
        [request setPostValue: source forKey: @"source"];
        [request setPostValue: continueUrl forKey: @"continue"];
    
        [request setDelegate: self];
        [request setDidFailSelector: @selector(loginRequestFailed:)];
        [request setDidFinishSelector: @selector(loginRequestFinished:)];
    
        [request start];
    

    Edit 1:

                NSString *username = @"Login info";
                NSString *password = @"Password";
                NSString *loginUrl = @"http://connect.twangoo.com";
                NSString *continueUrl = @"http://www.google.com";
    
                ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:[NSURL URLWithString: loginUrl]]; // log in & get cookies
        //Dont need it if u dont want to add any header value for the site
        //[request addRequestHeader: @"User-Agent" value: @"NetNewsWire/3.2b25 (Mac OS X; http://www.newsgator.com/Individuals/NetNewsWire/)"];
    
                [request setPostValue: username forKey: @"Login"];
                [request setPostValue: password forKey: @"Pwd"];
    
    //Just for google api reader service u dont need it here..
    //[request setPostValue: @"reader" forKey: @"service"];
    
                [request setDelegate: self];
                [request setDidFailSelector: @selector(loginRequestFailed:)];
                [request setDidFinishSelector: @selector(loginRequestFinished:)];
    
                [request start];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying use mod_rewrite to rewrite URLs from the following: http://www.site.com/one-two-file.php to http://www.site.com/one/two/file.php The
I am trying to save data into cache using ASIHTTP ( http://allseeing-i.com/ASIHTTPRequest/How-to-use#using_a_download_cache ). I
I have a strange problem. I use ASIHTTPRequest in a iOS 5 project with
I have been trying use the edit_post_link() function to contain an image. All of
I am trying to use the ASIDownloadCache from the ASIHTTPRequest library. I think I
Hey guys I have done lots of work with ASIHTTPRequest so far and use
Trying to use the http://www.dinnermint.org/css/creating-triangles-in-css/ method to create an arrow _________________ \ \ \
I am trying use std::copy to copy from two different iterator. But during course
I have a regex that I'm trying use to validate against strings. Trying to
I have a 3rd party DLL that I am trying to use in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.