Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. {
  2. "status": 500,
  3. "source": "https://default-web-....azurewebsites.net/api/ContactsList,
  4. "message": "The format of value '*; q=.2, */*; q=.2' is invalid."
  5. }
  6.  
  7. public class APITest {
  8. public static void Attempt(){
  9. HttpRequest req = new HttpRequest();
  10. Http http = new Http();
  11.  
  12. req.setMethod('GET');
  13. req.setEndpoint('https://microsoft-apiapp....azurewebsites.net:443/api/ContactsList');
  14.  
  15. HTTPResponse resp = http.send(req);
  16. System.debug(LoggingLevel.INFO, resp.getBody());
  17. }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement