Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String Body = 'notice='+ EncodingUtil.base64Encode(blob.valueof(Payload));
- HttpRequest Publishreq = new HttpRequest();
- Publishreq.setHeader('Authorization',Token);
- Publishreq.setHeader('Accept','application/json');
- Publishreq.setBody(Body);
- Publishreq.setmethod('POST');
- Publishreq.setEndpoint( 'https://endpoint.com/api/qualification/latest/notice/submit');//+Body);
- HTTP Publish = new HTTP();
- HTTPResponse PublishResponse =new HttpResponse();
- PublishResponse = Publish.send(Publishreq);
- curl -X POST -F notice=SomeBase64XML -H "Authorization: Basic SomeBase64Credential" https://endpoint.com/api/qualification/latest/notice/submit
Add Comment
Please, Sign In to add comment