-
Notifications
You must be signed in to change notification settings - Fork 6
Raw request
Aleksander Sjåfjell edited this page Dec 7, 2016
·
1 revision
Curious about how a simple raw request looks like? Look no more. Here is a simple example of a message sent with one pdf and one simple txt file
POST https://qaoffentlig.api.digipost.no/messages HTTP/1.1
X-Digipost-UserId: 497013
Date: Wed, 07 Dec 2016 14:47:08 GMT
Accept: application/vnd.digipost-v6+xml
User-Agent: digipost-api-client-dotnet/7.0.6184.28305 (.NET/4.0.0.0)
X-Content-SHA256: cZM1trDPKy8/ygP8+LOllNv6S78AntQrZBCE+cEcJos=
X-Digipost-Signature: RAdz6PqMVSQn/+0LBcRAaih8Ic9R0ccBL0aTgg1sA0SpUwje1HbM8ZeH8uxjIKXv2OLnUs/w6uONl51SzxLdF/TUGZWRMEx3063KvFdzOIyAylkRTCKo9F1ulKix0fmg0d9/WU3hC3ayPXyja9D1AbMOSb1lOdCnxDL46u28EgO1r09b27N653as4I2GQPgJJAakcCme8JDvRaxxidKVn2OCXSb10UHY/GYGtt2Xda5AtohDvKdiOZRtP31sPaLKrt+eczDDwuZoM8mNId1mdOagjnw3NSHUZj+c38M2hqUldZCHrc9LUbhnihuhvB6XiIfzJTA6Z5oLZ8+nGk7Kpg==
Content-Type: multipart/mixed; boundary=6dc66a32-2453-44dd-8cac-cf54b3b1d0b0
Host: qaoffentlig.api.digipost.no
Content-Length: 2604
Expect: 100-continue
Connection: Keep-Alive
--6dc66a32-2453-44dd-8cac-cf54b3b1d0b0
Content-Type: application/vnd.digipost-v6+xml
Content-Disposition: attachment; filename="message"
<?xml version="1.0" encoding="utf-8"?><message xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://api.digipost.no/schema/v6"><recipient><personal-identification-number>01043100358</personal-identification-number></recipient><primary-document><uuid>6d99008e-2672-4b55-9b09-996b09a06e47</uuid><subject>simple-document-dotnet</subject><file-type>txt</file-type><authentication-level>PASSWORD</authentication-level><sensitivity-level>NORMAL</sensitivity-level></primary-document><attachment><uuid>2bade07d-774f-4cbb-a832-1299f2373a71</uuid><subject>simple-document-dotnet</subject><file-type>txt</file-type><authentication-level>PASSWORD</authentication-level><sensitivity-level>NORMAL</sensitivity-level></attachment></message>
--6dc66a32-2453-44dd-8cac-cf54b3b1d0b0
Content-Type: text/plain
Content-Disposition: attachment; filename=6d99008e-2672-4b55-9b09-996b09a06e47
%PDF-1.4
%
1 0 obj
<</Pages 2 0 R /ViewerPreferences 8 0 R /Type /Catalog >>
endobj
2 0 obj
<</Count 1 /MediaBox [0 0 596 842 ] /Type /Pages /Resources 3 0 R /Kids [5 0 R ] >>
endobj
3 0 obj
<</Font 7 0 R >>
endobj
4 0 obj
<</Filter /FlateDecode /Length 60 >>
stream
x 7T06RI r
2T0 B BH. GjNN Bx~QN BH k X
endstream
endobj
5 0 obj
<</Parent 2 0 R /Type /Page /Contents 4 0 R >>
endobj
6 0 obj
<</BaseFont /Courier-Bold /Subtype /Type1 /Encoding /WinAnsiEncoding /Type /Font >>
endobj
7 0 obj
<</1 6 0 R >>
endobj
8 0 obj
<</DisplayDocTitle true >>
endobj
9 0 obj
<</Subject ( S a m p l e a b o u t a s i m p l e ' h e l l o w o r l d ' u s i n g P D F C l o w n) /Creator ( o r g . p d f c l o w n . s a m p l e s . c l i . H e l l o W o r l d S a m p l e) /Author ( S t e f a n o C h i z z o l i n i) /CreationDate (D:20110305200615+01'00') /Producer ( P D F C l o w n f o r J a v a 0 . 1 . 0) /Title ( P D F C l o w n - H e l l o w o r l d s a m p l e) >>
endobj
xref
0 10
0000000000 65535 f
0000000015 00000 n
0000000088 00000 n
0000000187 00000 n
0000000219 00000 n
0000000349 00000 n
0000000411 00000 n
0000000510 00000 n
0000000539 00000 n
0000000581 00000 n
trailer
<</Root 1 0 R /Info 9 0 R /Size 10 >>
startxref
1037
%%EOF
--6dc66a32-2453-44dd-8cac-cf54b3b1d0b0
Content-Type: text/plain
Content-Disposition: attachment; filename=2bade07d-774f-4cbb-a832-1299f2373a71
Vedlegg fra DP-API.
--6dc66a32-2453-44dd-8cac-cf54b3b1d0b0--