Thanks again for pointing me to the right direction. Adding $req->header('Ocp-Apim-Subscription-Key'=>$BingKey); brings me a bit further. Still something is wrong and the error message is a bit obscure to me.

Connecting to Bing for: https://api.cognitive.microsoft.com/bing/v5.0/ +search?Hello HTTP/1.1 400 Bad Request Cache-Control: private, max-age=0 Date: Mon, 21 Nov 2016 18:39:19 GMT Vary: Accept-Encoding Content-Length: 138 Content-Type: application/json; charset=utf-8 Expires: Mon, 21 Nov 2016 18:38:19 GMT Apim-Request-Id: d3e4c0aa-1a8f-45f4-b3ad-f850296d1651 BingAPIs-Market: de-DE BingAPIs-TraceId: 726DF5B30CE34AF9BBF48A5584E5068C Client-Date: Mon, 21 Nov 2016 18:39:20 GMT Client-Peer: 52.174.60.141:443 Client-Response-Num: 1 Client-SSL-Cert-Issuer: /C=US/ST=Washington/L=Redmond/O=Microsoft Corp +oration/OU=Microsoft IT/CN=Microsoft IT SSL SHA2 Client-SSL-Cert-Subject: /CN=api.cognitive.microsoft.com Client-SSL-Cipher: ECDHE-RSA-AES256-SHA384 Client-SSL-Socket-Class: IO::Socket::SSL P3P: CP="NON UNI COM NAV STA LOC CURa DEVa PSAa PSDa OUR IND" Strict-Transport-Security: max-age=31536000; includeSubDomains; preloa +d X-MSAPI-UserState: eaa0 X-MSEdge-ClientID: 3266EAB9C91A686D383EE36DC87C69F7 X-MSEdge-Ref: Ref A: 726DF5B30CE34AF9BBF48A5584E5068C Ref B: 0E8655691 +1C74DC2F6EACB35EBB37432 Ref C: Mon Nov 21 10:39:19 2016 PST {"_type": "ErrorResponse", "errors": [{"code": "RequestParameterMissin +g", "message": "Required parameter is missing.", "parameter": "q"}]}

In reply to Re^6: New Bing Search Api (5) by Anonymous Monk
in thread New Bing Search Api (5) by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.