daap server: extra_data request not being called - daap

I have implemented a daap server by using the unofficial specification which can be found here:
https://github.com/andytinycat/daapdocs
It's working with the last version of iTunes (11.1), but I have no artwork in iTunes for my daap-served albums.
I have seen that the following request is handled in several open source daap server :
/databases/%d/items/%d/extra_data/artwork?session-id=%d ...
iTunes does not send the extra_data request with my current setup.
My question : why ? Which dmap code should I implement to make iTunes send that extra_data request ?

send ated=0x0001 on '/server-info' and asac=0x0001 on '/databases/1/items' at every item

Related

Karate test run several times

I'm not a native speaker of English, but I want to ask a question at here. and I am a beginner at Karate.
I am testing POST request to server. and I want to send only one time.
but, my log said, it sent 3 time same post request to server when I exec.
I dont know why It happned.
Feature: CBtest
Scenario:
Given url 'http://localhost:8888/api/insert'
And request {"name" : "fooooo"}
When method post
Then status 200
Is there any way to send(run,exec) only once?

GitHub API : Get thread_id from mail notifications (issues, pull requests, ...)

I'm currently working on a project using the GitHub API and ThunderBird.
On this project I need to work with notifications and threads.
In order to get a thread_id needed for some requests (such as GET /notifications/threads/{thread_id}), I can use the GET /notifications api route which returns an array of notifications with the id of the threads they belong to.
The problem is, I don't want to get the thread_id that way but directly from the mail you received when you are mentioned on a thread, for instance : an answer to an issue you asked.
Normally you get a mail that looks like that :
mail notifications from GitHub.
Unfortunately, I could not find the thread_id in the mail (headers, content, ...), the closest thing i could find was the link "unsubscribe" at the end, which leads to the thread.
This url contains what seems to be an id but it's not an int and it looks like it's encoded in some base...I tried base64 but the int returned is not working (it's different than the id you get with /notifications of the API).
So my question is : is there a way to get the thread_id directly from the mail so that I can use it in my project to request the GitHub API ?
Thank you,

Google Contacts API 404 photo upload

Using the Contact API v3 I had a working implementation for uploading a photo to an existing contact.
Since a couple of weeks this fails with 404. The implementation has not been changed when the API servers started to sent back 404s and I don't see any indication what exactly changed and would result now in the 404s.
I'm using HTTP PUT + the photo URL of the contact.
One interesting observation I made was that the contact's self-URL changes which each request (the provided details are still always the same and correct).
Did anyone notice something similar ?
Edit: Link to issue: http://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=3301&q=contact&colspec=API%20ID%20Type%20Status%20Priority%20Stars%20Opened%20Summary
tried different photo formats and sizes, different content types and even photos which had been uploaded previously (when it was still working). Nothing changed the behaviour of returning 404.
w.r.t to change contact ids: the contact ID changes between API invocations. I first thought it could be related to reopened connection( no keep-alive) that contact ids change. However what speaks against this being the cause of the issue is that first retrieving a contact and then editing a contact's address is possible without any issues.
authentication does not seem to be problem as well - otherwise editing a contact's address would not work as well.
PS: I'm using the JSON output format when retrieving the contact.
PS2: s/GET/PUT in step 3 ( I tried to change PUT to GET to see if it still returns 404... which it does).
PS3: am not using any client library but implement the protocol directly (which should not be relevant for the HTTP PUT on the photo link
After hours of investigation I found out that this is particular an issue using OAuth1. Using OAuth2 the exact same photo links which had been returned when requesting a specific contact record using OAuth1 work and return the photo data on HTTP GET. I expect HTTP PUT for photo links using OAuth2 to succeed as well.
Remains open if if there's some kind of workaround for OAuth1.

POSTing to web service API in Objective C?

I'm writing one of my first apps for consuming a web service in Objective C, it's a Lighthouse API client. I'm able to execute all the GETs and XML parsing correctly and quickly, but I'm having extreme trouble trying to create a new ticket via POST (http://lighthouseapp.com/api).
I'm using ASIHTTPRequest.
I tried including the parameters on the URL (i.e. POST /projects/#{project_id}/tickets.xml?title=boo).
I've tried putting the ticket XML in the request body.
<ticket><title>boo</title></ticket>
Nothing is working. (server always sends a response back saying it needs a title) I'm very new to web services - am I missing something obvious?
I had a quick look at the Lighthouse API and here's how you go about creating a new ticket.
Request URL is http://{yourCustomURL}.lighthouseapp.com/projects/{ProjectID}/tickets.xml where {ProjectID} is a 5 digit number - in my case 72945.
Method is POST
Content type should be set to application/xml
Body should be in the format below. All fields are optional so I only included the title
<ticket> <assigned-user-id type="integer"></assigned-user-id> <body></body> <milestone-id type="integer"></milestone-id> <state></state> <title>Testing new ticket creation</title></ticket>
(sorry about the formatting of the code above, SO doesn't seem to like XML formatted code somehow?
This worked for me with a new ticket created under projectID 72945 - response received was 201 Created
If you want to make sure your POST request is working before diving into ASIHTTPRequest, download a Firefox add-on called POSTER from here. This will allow you to send an authenticated post request with all the fields above. Once you get that working, it should be a piece of cake to get ASIHTTPRequest to do the same.

How to update a status message on the lotus connections server from the other web application?

I have found the following info "To update a status message, send an updated status document in Atom format using an HTTP PUT request"
but i don't underctand how to sent the xml file to the lotus connections server. I tried to submit a form with xml data...I tried to call ajax query..
Please anybody help - give me an example how I can do it?
you can probably grab some sample code from this project over at OpenNTF.org