Power Query - How to format options for Web.Content()?

I am trying to access a web api which can return data in either JSON or XML. When connecting with Power Query I get a "400, Bad request" error though and I suspect it could be due to Power Query not explicitly providing accepted Content-Types
in the request. Anyone know how to add options to the Web.Content() request?
http://office.microsoft.com/en-001/excel-help/web-contents-HA104112310.aspx
Thanks!

I believe the default reponse content-type is JSON. It doesn't serve Power Query with anything but an error response though and with the help of Network Monitor I caught a bit more details (in Swedish).
Request:
Http: Request, GET /platsannons/matchning, Query:lanid=1
Command: GET
+ URI: /platsannons/matchning?lanid=1
ProtocolVersion: HTTP/1.1
Accept: */*
UserAgent: Mozilla/5.0 (compatible; Microsoft.Data.Mashup; http://go.microsoft.com/fwlink/?LinkID=304225)
Host: api.arbetsformedlingen.se
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
HeaderEnd: CRLF
Response:
HTTPPayloadLine: {"Error":{"statuskod":400,"titel":"Bad Request","beskrivning":"Felaktig headerparameter: [Accept-Language]"}}
And the API can be found at:
http://api.arbetsformedlingen.se/
Would be great to be able to define custom headers to the request through options for cases like these. Thanks for the reply!
Best regards,
Daniel

Similar Messages

  • How many display options for Web Apps are there?

    I know this is going to sound stupid,
    But are there only 2 ways to show web apps?
    Basically - I want to get links to auto populate on one web app, pulling just links to another web page (this web page is one of the fields in another web app), but automatically updated when the category of the "linked to" web app has another product linked to it.
    I know what that reads like!
    The only thing is - these are separate web apps.
    The alternate/backup view of the first web app looks like this:
    Currently - the user has to manually add the links like this:
    Which is not ideal - I just want them to dynamically populate on the fly.
    Is this possible?
    Cheers, Dave

    Funny you say that - as the most obvious things appear in your brain immediately after posting a question... Will see how that works...

  • How to set optional for table structure in functiona module

    hi experts,
    as i have small doubt regarding
    while publishing web service by using rfc where i am unable to set optional for table structure i am able to put optional for import parameters may i know how to set optional for table structure ....
    reagrds prabhanjan

    Ignoring the TABLES/CHANGING/EXPORTING argument...
    while publishing web service by using rfc where i am unable to set optional for table structure i am able to put optional for import parameters may i know how to set optional for table structure
    Why not?  There's no issue with marking a TABLES interface parameter with 'Optional' and publishing the function module or function group as a web service...

  • AE CS3 crashes when setting audio format options for MP3

    I've just submitted a bug report, but I wanted to see if anyone experienced this or have any suggestion.
    Basically, when I add an MP3 audio to a comp, and trying to make a movie (exporting it as uncompressed QT), when I press the Format Options button under the audio options output, AE will crash.
    Here are the steps.
    1. Add an MP3 file to the project.
    2. Create a comp with only the MP3 file in it. You can also create other objects/elements in the comp as long as there's an MP3 audio file.
    3. Add the comp to the render queue (aka Make Movie)
    4. Under the Output Module settings, select "QuickTime video" for output. The "Format Options" for the QT movie is not important at this point, but you can select uncompressed animation.
    5. Check "Audio Output". Click the "Format Options" button under the Audio Output.
    6. After Effects CS3 will vanish from the screen without saying "Hi, how are you!"
    WinXP SP3 32bit / 4G
    After Effects CS3 8.0.2.27 dva:2.0.0.127845
    Anyone getting this and knows why is this happening? Tried different MP3 files with the same results.
    Thanks

    Thanks for reporting this. Adding repro steps is always very valuable (though I suspect that step 5 is all it takes!)
    I think the nature of the source MP3 file(s) is probably irrelevant, since (if I understand correctly) the crash occurs when pressing the Audio Format Options button in the Output Module, not when previewing or rendering.
    There was a similar report from another user. It looks like a problem with Quicktime on Windows, or at leasr some flavors of Windows.
    Of course no combination of settings should make the application crash, but the odd thing that also struck me in the earlier report is... that by specifying MP3 for audio encoding on an Lossless (ie, Animation-encoded) Quicktime file, you're saving about 0.05 per cent in the overall file size/data rate To put it in perspective, you're making the audio go from 175 Kbytes per second to 30 Kbytes/s, on a file that easily can have a data rate of 20 Megabytes per second!

  • How to activate trace for web services

    Hi Experts,
    How to activate trace for web services in SOAMANAGER.
    We are not able to view the Payload trace of the error logs.
    Can anyone please let me know how to go about this???
    Regards,
    Ashwini

    Hi Ashwini,
    The thread below might be useful to you:
    [SOAMANAGER - Get the XML generated;
    Regards, Trevor

  • How can scan coins for web use?

    How can scan coins for web use?

    Did you Google "Scanning Coins"?
    http://www.telecoins.com/scanning.html
    If you have a specific question after reading the (somewhat dated) article, please post back!

  • How to write API for web cam?

    who knows how to write API for web cam?

    if you mean capture from the cam try JMF I've done it a million times
    salut

  • Do we have a built-in option for web based tool in Nexus 5548UP switches for management purpose?

    I have purchased Nexus 5548UP switch, i want to know if we have a built-in option for web based tool to manage and configur it just as ASA have ASDM. If there is no such options then what are the options available that can be freely available and can be used to get performance monitoring done.
    Message was edited by: Praveen Varun

    DCNM (Data Center Network Manager) runs on a server (Windows, RHEL or Solaris) and can be used to manage Nexus devices. It's free for Nexus 1K through 5K devices (paid license required for Nexus 7K management).
    http://www.cisco.com/en/US/products/ps9369/index.html
    There is not a "built-in" management product like ASDM for ASA.

  • What happened to the add to home page option for web pages. Can't find it.

    What happened to the add to home page option for web pages. Can't find it.

    Try stopping Safari followed by resetting your phone: double-tap the home button, locate Safari at the bottom (swiping if necessary), tap and hold until it wiggles, tap the minus sign.  Now reset: hold the on/off and home buttons until you see the Apple logo (ignore the off slider that appers first), then release.  If it still is missing you may need to restore your phone, which will put a fresh copy of the iOS on your phone (see http://support.apple.com/kb/HT1414).

  • Short of dismantling and recreating a page how do i find out whats causing [Error: Invalid URL for Web Content Overlay]

    Hi,
    i received an indesign file to include in a folio that had links to the creators desktop where they had the assets for the web content overlay. When i try to update the folio i get the error message:
    "Content generation error.
    [Error: Invalid URL for Web Content Overlay]"
    Which is fair enough.
    The problem is, i have gone through and changed all URLs that I can see, but there is one somewhere, that I just can't find.
    Is there a way to get a list of all web content overlays in a particular file? otherwise i will need to recreate the whole page again, and it has some pretty complex interactions which i rather wouldn't do.
    I also cannot ask the original doc creator to just change the links as i'm sure he'll have the same issues as me, at not being able to track down the erroneous link.
    The problem I have with DPS is that its not very transparent. you'll have to click on everything, and into every group to see what actions are on it, which can be extremely time consuming and frustrating when complex interactions are included.
    thanks in advance for any assistance

    I’ve found watching the process helpful to narrow down the page.
    Working off a duplicate of the file, delete one layer at a time until you figure out what layer the problem is on.
    From there it’s a bit easier to narrow down.

  • Invalid URL for Web Content Overlay. Help?

    I am doing a french tranlation to an existing folio app that someone else created.
    There is one page in my folio that is comprised of garbage and a trash can. You touch the garbage and drag it into the trash, and things change, etc.
    I have an index.html file and a bunch of other images.
    I can't even successfully add the article to my folio, I get this warning: Content Generator Error. Invalid URL for Web Content Overlay.
    Can you walk me through how to get this to work?
    Attached is a screen shot of my file structure...

    When you specify the .html file, all the content in that folder is uploaded automatically. Here's an article about Web Content overlays:
    http://help.adobe.com/en_US/digitalpubsuite/using/WS9293e1fb3b977c5c73657495129f66e490f-7f fa.html
    And here's an article and video about HTML articles:
    http://help.adobe.com/en_US/digitalpubsuite/using/WS67cb9e293e2f1f60530cf39c12f5fcd6d46-80 00.html

  • Why am I getting the flag Invalid URL for web content overlay when making scrolling panel in Indesig

    Why am I getting the flag 'Invalid URL for web content overlay" when making scrolling panel in Indesign? Iam making additions to existing articles but the problem is new. The articles were originally made using CS and now I am on CC, which I have just uninstalled and re installed, no difference, can anyone help please? Steve

    Hi Bob, thankyou very much for coming back on this. The flag is coming up towards the end of the preview process on desk top. I have made dozens if not hundreds on my two published apps on the app store, but have not done an update for nearly a year, in which time I have needed a refresher, and as usual went to Lynda. In this case I have followed to the letter your DPS course, which is great, and I found the process of making the scrolling panels somewhat easier than when I started 2-3years ago. Initially I was mystified that the flag talked about url and web content, but just put it down to something I had missed in recent improvements in CC.
    I tried over and over, but always got the same result. I thought at one point it might be because the content of my slide was copy and photo, so for a test I deleted the photo. Same result, and many of my existing slides are copy and picture.
    I also uninstalled Indesign CC and reinstalled in case of corrupted content, I also copied to IDML and relaunch, same problem. I am sure I have made the scrolling content as instructed, The one thing I havn't done is trash my preferences, if you think that would be a good Idea could you please direct me to some content at Lynda on how to do it in CC. Many thanks, Steve

  • MP4 Video throwing error: Invalid URL for Web Content Overlay

    Converted a 15 second flv video to the following using Handbrake:
    mp4
    H.264 codec
    "Placed" mp4 file into my article
    Set Autoplay= On and 0.125s delay
    Try to preview via InDesign a get the error: Invalid URL for Web Content Overlay
    Try to update my article via Folio Builder and I get the same error.

    It seems that you "placed" your video into the frame selected as Web Content in Folio Overlays Panel.
    Delete that frame.
    Place (in the normal InDesign way, not"place") your mp4 file onto the page.
    Adjust the size of the frame to your video measurements.
    Look at the Folio Overlays Panel. Your placed file should appear ther as Video Overlay.
    Set your options and you are done.

  • Content generation error: invalid url for web content overlay

    Hi,
    I am having an error message " content generation error: invalid url for web content overlay" when I want to upload the article.
    I don't have any link with that article and this is my 1st time having this kind of error. I am using indesign CC
    Please help.
    Thanks,
    Rush O

    I’ve found watching the process helpful to narrow down the page.
    Working off a duplicate of the file, delete one layer at a time until you figure out what layer the problem is on.
    From there it’s a bit easier to narrow down.

  • Invalid URL for Web Content Overlay, ERROR!!!!!!

    Hello All,
    I'm hoping someone can help me with this error, I was working on my indesign file and was testing it out locally, then I went on to upload my file and I got prompt to install a new version of the Folio panel which I did, now every time I try to upload my file I get this "ERROR: Invalid URL for Web Content Overlay", I've searched around and have not come up with an answer. Not sure if its a bug on the new update or what. I tried some troubleshooting which this is what i did. I copied my first page of my document onto a different file and tried to upload one page and then i got the error but then I deleted the images and just left one text box and it uploaded my file without any issues, strange huh. Any ideas????

    I was having the same problem with both hyperlinks and buttons in one particular file -- "Invalid URL for Web Content Overlay." It seems to only be a problem in files where I had a link or button previously, and then deleted the object. When I create a new object and create a link or button, it's as though the old link is still lingering somewhere in the file! However, none of the old links is listed in the hyperlinks panel before I create a new one.
    This occurred while I was teaching a DPS class, using the Adobe courseware (sight unseen by any proofreader, I believe). In one of the exercise files, the steps for the student to create hyperlinks and buttons had already been done, so I deleted the hyperlinks. (I think I deleted the text frames that contained them, but I'm not sure.) I never had a problem with it UNTIL I downloaded the Overlay Creator/Folio Builder dated June 19 (v21, I think).
    In the same file, I also had problems with a NAVTO link, . I don't think there were any NAVTO links in any earlier version of the file, at least none that I ever created or deleted.
    I've coded HTML since the days when the only available tool was Notepad, so I'm sure that I used correct URLs (and none redirected). Even the URLs in the deleted objects were correct; I only deleted them so the exercise could be done again.

Maybe you are looking for

  • Front end and back end questions

    Hi, If I want to develop a web base SOA application by using Jcaps, I have several question want to ask. 1.) In the front end, if i create the page by using eVision to create the page flow and the page layout, how can I match the fields of the page (

  • Link between process order and sales order for planning strategy 52

    Hello, I investigate the possibility of a link between "sales order" and "planned order / process order" for the usage of planning strategy 52 (planning w/o final assembly, make to stock). I know, this is not conform to the basics of planning strateg

  • Zoom in or zoom out while video

    How to zoom in or zoom out while video?

  • I can't open up my HP Pavilion g6-1a31nr notebook.

    I'm trying to open up my HP Pavilion g6-1a31nr notebook computer to replace the CPU, but even after removing all the screws I can't seem to get it to open up.  Can someone give me a guide for opening it up?  Thanks.

  • JRC - Error when trying to set datasource using resultsets greater than 1

    Hi I have one report and 2 subreports. All the reports use resultsets. At runtime the report fails when I try to set more than one result set. It works if I set one result set. Please advise asap thank you selvi FATAL - Request failed and JRC Command