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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:13:20+00:00 2026-06-02T19:13:20+00:00

Im using Linkedin Rest Api on a site im building, in general works great

  • 0

Im using Linkedin Rest Api on a site im building, in general works great the only problem is that i cant send messages to my connections.

({'status': '400', 
  'content-length': '302',
  'transfer-encoding': 'chunked',
  'vary': '*',
  'server': 'Apache-Coyote/1.1',
  '-content-encoding': 'gzip',
  'date': 'Wed, 28 Mar 2012 22:52:35 GMT',
  'x-li-request-id': 'QU0G42N6TV',
  'nncoection': 'close',
  'x-li-format': 'xml',
  'content-type': 'text/xml;charset=UTF-8'},
  '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  \n<error>\n <status>400</status>
  <timestamp>1332975155652</timestamp>
  <request-id>QU0G42N6TV</request-id>
  <error-code>0</error-code>
  <message>Couldn\'t parse mailbox-item document: error: Unexpected end of file after null</message>\n</error>\n'

this how i call the api:

client.request(url,’POST’,’text/xml’,param)

where:

url = 'http://api.linkedin.com/v1/people/~/mailbox'

param:

<?xml version='1.0' encoding='UTF-8'?><mailbox-item>
<recipients>
<recipient>
<person path='/people/TquMAMeCCD' />
</recipient>
</recipients>
<subject>Congratulations on your new position.</subject>
<body>Youre certainly the best person for the job!</body> </mailbox-item>

Thanks!

  • 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-06-02T19:13:20+00:00Added an answer on June 2, 2026 at 7:13 pm

    My Problem was finally on the header, i wasn’t setting the right content-type. That fixed it.

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

Sidebar

Related Questions

I am using LinkedIn-j api for making a Linkedin application.The problem that I am
I want to send messages to multiple friends in linkedin using python. from docs
I've successfully made my way through the LinkedIn OAuth process (using the REST API
I am using LinkedIn api along with Python, Django and Linux. The problem I
I am writing some rest calls to the LinkedIn API using web request and
I am trying to authenticate linkedin users for my site. I am using Scribe
I'm using the LinkedIn Profile widget on my site and am using the popup
i am trying to make the post using my linkedin api application, The issue
I'm using an external Node.js module, everyauth , to handle my LinkedIn API authentication.
This is regarding about LinkedIn group API. I'm using this API to get relevant

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.