Question

My use case: Trying to issue a PUT request to move a post from a group's general discussions to job discussions.

To issue that request you need a typical ugly piece of LinkedIn XML along with the post id in the URL.

The problem is that the post id is only present as part of the received location header, which is obtained from the POST request(not at the response body).

Any solution except using packet sniffing?

This OPEN bug from 2011, describes the same issue.

LinkedIn forum question

Was it helpful?

Solution

Since you're using PECL oAuth library, try using the OAuth::disableRedirects function.

OTHER TIPS

Seems that LinkedIn only return 201 with a location header in case you can post to this group without the need of your post being moderated(usually that means that you are the owner of the group).

At any other case LinkedIn will return 202(accepted) without location headers(the majority of the cases).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top