title: download file from url in assembly language in osx
body: <p>For downloading a file using bash or shell I call execve syscall to run curl command</p>
  
  <pre><code>  int execve(char *fname, char **argp, char **envp);
  </code></pre>
  
  <p>But the problem is i want download file with my own code not with curl or another.</p>
  
  <p>I studied curl source code but it is too large and hard to figure out.</p>
  
  <p>Is there any way to download a file within my program without using another programs in mac osx with intel 64.</p>
  
  <p>Any clue for solving this issue will be appreciated.</p>