Edit: The result status code for the document I want to download is 200. So it seems like I am authorized. However when I try to open the pdf it cannot be loaded.
When I open the downloaded pdf file in notepad it gives me
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd " >
<html xmlns:v="urn:schemas-microsoft-com:vml" >
<head>
<!--[if IE]>
<style>
v\:line { behavior:url(#default#VML); display:inline-block; }
</style >
<![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<!-- favicon -->
<link rel="shortcut icon" href="../style/mstr/images/favicon.ico" type="image/x-icon" />
<!-- end favicon -->
<title pgn=''>Login. SomePseudoName</title>
<script type="text/javascript" >
var isQuickSearchEnabled = false;
// Set common config properties for most applications
mstrConfig = {
resolveOnly :'' === 'true',//PAUSE MODE
isPresentation :'' === 'true',//PRESENTATION MODE
taskURL: 'TaskProc.aspx',
taskAdminURL: 'TaskAdmin.aspx',
thousandsSep: ',',
decimalSep: '.',
listSep: ',',
onMobileDevice: false,
webVersion: '-1672898783',
appVersion: '',
pluginRoot: '../plugins/',
isUsherAuthVisible: true,
isEdgeModeEnabled: '1' == '1',
isLinkJSEnabled: '1' == '1',
allowHTMLOnSelector: '0' == '1',
//AND SO ON...
(these are just some of the top lines since it might contain sensitive data)
When downloading the file manually and open it with text editor you can see the right pdf format:
%PDF-1.4
%âãÏÓ
5 0 obj
<<
/Type /XObject
/Subtype /Image
/Name /Im0
/Width 28
/Height 30
/BitsPerComponent 8
/ColorSpace /DeviceRGB
/Length 90
/Filter /FlateDecode
>>
stream
xœíÒA
DQîѼY A´Ñ Á¿ˆ6=,bNNDt©µY×ÄŽËDæ!¢6ݦÜgÍ>:ç¢,žr÷üqÎGïy«M—)@.“àp3R›%ÌMÚŸ
endstream
endobj
6 0 obj
<<
/Type /XObject
/Subtype /Image
/Name /Im1
/Width 256
/Height 202
/BitsPerComponent 8
/ColorSpace /DeviceRGB
/Length 2127
/Filter /FlateDecode
>>
stream
xœíÝ]OK Æñïÿ NÍ!ˆ!ñFRã $FIR`
â;hEÅ
ž'4‡43ívfvÜíLþ¿+^Êì2óÌîÌvºûç ˜,_¿~}òäÉÜÜÜÔÔÔ?¸¦ªP…¨ZT9u·þ–ËËËÇ7ºã6¹T9ª"UTÝm…ÈÔ¦<¨;_iPEÑ2£ÃZݱJ‰ª«îC4Ö2ìñ¢êb.
ÍìêTzTiu·e☛›3·Ùlv»Ýº÷kR¨*T!F©ÒêÞ/Äa_ê$üUˆQEª´ºw
qØ'÷º÷hQK¹¢e]PK¹¢e]PK¹¢e]PK¹¢e]PK¹¢e]PK¹
nÙËËË?noo?¿¦/ôm®kcÈ®ÂZöôôtsssÕ¢êW{Ÿ«GþsвJ¸üAùuòŸ+ß–Õgè‘ß8d6"ÿ¹òmY
ò‹Ãߧ—U³ÿÕ ÿ¹òmYÍs]ò¯—U³ÿÕ ÿ¹òmÙçÏŸ»ä_/«fÿ«Aþs•_þ;Îþþ¾æ ý³;;;Œýúõ«L™ä?W9òW¯^êGGGÁ%“ÿ\ù¶ìÄÎ/..Æ^˜
Þ+òŸ+ß–ÌëŸÚÜË—/]:æçÏŸÊ'ÿ¹
hÙ |ÿ«Ýn»„õz t~~î[>ùÏUXËNÔúaÇ!Ù
)|OOä?WÁ-;!ëßNNN¼Âß·¿¿ïµòŸ«¤[öû÷ïŽ×cm^¤k ÒmÙ^¯7v&^Àk"n-¡X¢-{uuµ»»eþ>÷‰@¢µ„±mÙ7oÞ”ßÞÞžËæ%Œ•bË~ùò%Jøû\&)Ö\$ײgggkkkóï2H®–à(–½¸¸xñâEÄð÷¤UKp—PË*¢;;;ÑÃßW<H¨–à%nË^]]žžjD}xx¨QzÀJƒ¯_¿ŽõV«upppttÔét~þüÙëõ.ÿ7jÓä?W±ZVÉWæ766Œ°mmmœœ”ßO^2öÚ¢TÀÖÉ®¢´¬¡Å#oËì¤Ôe’¿½½]rUÒû÷ïïß¿OþóS>ÿ¿ÿÖ¡ulƒ»€†(öiÅ‘†:ŸUÔn·gggÉNJæ_ÞQ¹²¬½w_ØoÓhG»ç»ÅbêìêŒF#n±¨KÉü{ÍI×ÖÖÎÎμÊw_Ø?h}}½xÀ£“‚^³´´Ôl6çççg®é}«êWÅg
‡¼þL¬2ù÷]x/:xºÏ@?|ø~/4dZ R½²²rïÞ½èez1zÌ[pþŒ€pŠfÊ.«ÎÂÊßÝÝÕÅ.Ûí.//OMM¹$þDÈ3Ñr–
c‚Þ¯:Ì…ÏÏÏÊב߿úÚ³gϦ§§}“?èöíÛ*$³›:âOPþüø|AæFÁÝHÂökÐn{´«e’?HE©À²5ŽIâ›…³Õj•ÿêè¹pðÂ~{Â{||ì8Ôw§Ul´ÚGݼòwÎйðÛ·oŠ:<<4ÊQJgffFÅX£zÌu–ѾÓéô®é}«êW3KȆWþ÷ööb…¿Ï˜‡-ì×ùȸίQʨ#$?v£èezñ¨³ ¡<¸çÿÝ»wqÃßw3îv»aûK”êP£ÆüwîÜÑAÞ½r´K‹‹‹C‹Ò&˜gÀ1ÿš®FOþ
®P؜ھѨŽÛ£†.òèÑ#ßÜjdž‡´¡ÀJÇÄpÉÿ·oߢg~ûÁ‹Œi¯ŽØc/ut
üì. Ñï¤nlþÃ.ÅWckkËØÛåååâð—9Øåhs¥ju+Îÿ_ú¼a,ÆeM죴Æü±º€=ÐæX ‘´‚ü;.l®‘qùteeÅ¢h«¨GéíØW„´ÑhÊÊ¿×ÂæZ´Z-㱯yö§¨
y¬.`O®µÑXmêÊÿÁÁAÝÃXDt||lNn®ÒÇê*ÐbñvXº†æ?`asõŒDëëëF,_«Øo.hÓ±š³ó¯£YÝÑvb¼“µ´´dÄrssÓøg£tkü6«9P1;ÿqï®ö÷«=›Í¦Ë¡Oû*ßT¬ñ‡Út´ö@µìü×kW½^o𙟟7b9j©CÉ. b¿Ò¦£µaª•nþ Ú«=2¨LP±ÆŸhÓÑÚÕÊ8ÿÅϼî*–üg#Ýüan„uÆ?9I7ÿaó_C@`þ›“tópýs(ß.ÀõÏœ¤›ß÷¿
xuÞÿÊIºù÷Zÿ0–cºþ% éJ7ÿîëß¹tÖ¿e&Ýü¯ºöúˆVqÐŒƒõÏ™I:ÿ.ŸY\\ôª‚.`”†Ï¿¤.éü;~þqccëN
º€Ï?¦îÖ[FþŸ>}Zw®=¸|þ]GiÇç\ßpé|þ=:§eù¿{÷nB]Àñþ'êÑÏÜÿ$jb{”–v»=øÜÿJs¯#¶&¼£>>Ïý¯òðéÓ§ºó[Öìì¬qÛsîw>¬;ÂeÙceîG:xê€Vw„Ki4ö3¹¸ÿ9©¤~˜žž¶<óü¸Ó\@ÓaÍøì‹¢IÐÁÙ~ Ï?xþÀóO?×Sãâç_3É 0áþEêÉ
endstream
endobj
//AND SO ON.....
Since the authentication is not a problem anymore there seems to be an issue with the encoding/bodyformat (?) of the HTTP request activity. Here you can see the properties set:
Package version of UiPath.WebAPI.Activities is 1.7.0