문제

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

도움이 되었습니까?

해결책

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

다른 팁

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).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top