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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:20:01+00:00 2026-05-30T09:20:01+00:00

I need to post to this url: https://api.platform.com/media . I am really new to

  • 0

I need to post to this url: https://api.platform.com/media. I am really new to HTTP request and I need to send a request that contains an image and 3 other parameters. I have the values that I need but I don’t know where to begin or how it works…. Headers, Content-Length and some other wired values.

These are the values:

media[user_profile_id]
media[channels_list][]
media[file]
  • 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-30T09:20:02+00:00Added an answer on May 30, 2026 at 9:20 am

    Create an instance of NSURLRequest. Set the method property to POST, and set the body data.

    The data needs to be a single instance of NSData, so you will have to keep appending whatever data you want to send, each field labeled and separated by ampersands like so:

    id=12345&channels=1,2,3&image=123abcdef

    Remember, you need to transform all strings to binary, using NSString’s dataUsingEncoding: method. If you are using UIImage for the image, it has a similar method.

    The server of course needs to know how to parse the data, strings being strings and the image being an image.

    Finally, create an instance of NSURLConnection, set your current object as delegate and implement the delegate protocol to receive the response.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to test an API of following spec URL: http://myapp.com/api/upload/ Method: POST Parameters:
I need to post some text to a remote server over HTTP, this server
I was asked to post this as a question on StackOverflow by http://twitter.com/jonathanjulian which
I need to post a tab delimited file via the https post request. I
I have html form <form action=https://perfectmoney.com/api/step1.asp method=POST> <input type=hidden name=PAYEE_ACCOUNT value=U1224348> <input type=hidden name=PAYEE_NAME
I'm building a small Chrome extension that must send messages through a POST http
I came across http://api.imgur.com and thought that would be a usefull tool to use
I need to fetch the playlist for specific username. [NSString stringWithFormat:@http://gdata.youtube.com/feeds/api/users/%@/playlists?alt=json&v=2&orderby=published&client=ytapi-youtube-profile,strUserName]; I use the
I can't find anything in the docs on exactly how to do this. http://nodejs.org/api.html#request-method-149
I need to add indexes to my table (columns) and stumbled across this post:

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.