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 7570203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:21:46+00:00 2026-05-30T15:21:46+00:00

Update: NSURLConnection now seems to properly support 100-Continue. In any case, this answer contains

  • 0

Update: NSURLConnection now seems to properly support 100-Continue. In any case, this answer contains a link to the script to build libcurl for iOS/OSX.

I’m having a bit of a hard time with NSURLConnection, given that it doesn’t support Section 8.2.3 of RFC 2616 (HTTP/1.1).

Basically the client needs to be able to support sending the header Expect: 100-Continue; after sending the request headers, it must wait for a response from the server with the status code 100 before sending the POST/PUT body.

Furthermore, NSURLConnection (and consequently all libs that build on top of it) won’t return any response from the server until all data is uploaded – which is a pain since the server may reject the upload right away (invalid credentials, no space, file too large, etc).
While it does “work” for small files (content is fully uploaded and delegate method with response is called), on large files instead of getting the error response from the server (which I am positively sure is sent), I just get a “Connection failed” error.

I know libcurl properly supports the 100-Continue spec so I need some help compiling it and getting it up and running on a iOS 5 project.

I started with this post(scroll to bottom) but I couldn’t get far…

Made these changes…

export CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2
export CFLAGS="-arch armv7 --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk"
export CPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-cpp-4.2
export AR=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar
./configure --disable-shared --without-ssl --without-libssh2 --without-ca-bundle --without-ldap --disable-ldap --host=arm-apple-darwin10 --build=arm-apple-darwin10
make clean
make
ar rv libcurl.armv7.a lib/*.o

… but compilation fails with message

(...)
checking for arm-apple-darwin10-gcc... /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2
checking whether the C compiler works... no
configure: error: in `/Users/bruno/Downloads/curl-7.21.4':
configure: error: C compiler cannot create executables

I’m using curl 7.21.4, downloaded from Apple’s open source site.

So, how can I compile curl and use it on a iOS 5 project, preferably with SSL support?

  • 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-30T15:21:47+00:00Added an answer on May 30, 2026 at 3:21 pm

    This worked for me with the latest SDK:

    #!/bin/sh 
    export SDK=5.0
    
    buildit()
    {
        target=$1
        platform=$2
    
        export CC=/Developer/Platforms/${platform}.platform/Developer/usr/bin/gcc
        export CFLAGS="-arch ${target} -isysroot /Developer/Platforms/${platform}.platform/Developer/SDKs/${platform}${SDK}.sdk"
        export CPP="/Developer/Platforms/${platform}.platform/Developer/usr/bin/llvm-cpp-4.2"
        export AR=/Developer/Platforms/${platform}.platform/Developer/usr/bin/ar
        export RANLIB=/Developer/Platforms/${platform}.platform/Developer/usr/bin/ranlib
    
        ./configure --disable-shared --without-ssl --without-libssh2 --without-ca-bundle --without-ldap --disable-ldap \
                --host=${target}-apple-darwin10
    
        make clean
        make
        $AR rv libcurl.${target}.a lib/*.o
    }
    
    buildit armv6 iPhoneOS
    buildit armv7 iPhoneOS
    buildit i386 iPhoneSimulator
    
    lipo -create libcurl.armv7.a libcurl.armv6.a libcurl.i386.a -output libcurl.a
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

UPDATE: I've been playing around with this more, and it seems like tmux's clear-history
As per the latest update of Kindle V2.5, it has support of continue downloading
I'm following along with this useful looking answer to my question . It seems
Update: I reported this as a bug to Apple and they fixed it! All
Update : This is no longer an issue from C# 6, which has introduced
UPDATE: I'm getting this error: (No route matches /docs/index.html... ) when accessing admin.example.com/docs/index.html The
I have been working on this problem for close to 4 days now. I
I have some operations that are inside blocks. This operations, only update an UIImage
I'm trying to integrate a NSURLConnection object with UIProgressView, so I can update the
I used NSURLConnection to communicate with Soap webservice and it worked fine. Now I

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.