Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1486

curl is eating my brain - Please help me to solve the issue [closed]

$
0
0

I was using Post man to submit this XML file successfully without any issue, but the cUrl is giving me a big time to fix the issue , I am not sure why the same code working in Postman. Why is Curl giving me a big tI was able to successfully submit this XML file using Postman without any issues. However, I'm having a hard time fixing the issue with cURL. I'm not sure why the same code works in Postman but not with cURL. What could be the reason for this ?

accessKey="NzZlMDMyO"jwt="JWT eyJ0eXAi"jobName="harnessJob"taskDescription="descvj"automationFramework="JUNIT"projectKey="QENG"versionName="Unscheduled"cycleName="cyclevj"folderName="autovj"createNewFolder=trueappendDateTimeInFolderName=fasleappendDateTimeInCycleName=falsenameLab="zephyrtoscaIntegration"assigneeUser="712020:02c9f26"resultPath=$resultFilePath1mandatoryFields="{\"customfield_10171\": \"ScenarioX2\",\"description\": \"des2 mand\",\"reporter\": {\"label\": \"$nameLab\",\"name\": \"$nameLab\",\"id\": \"$assigneeUser\"}}"#mandatoryFields ='{"customfield_10171": "ScenarioX2","description": "des2 mand","reporter": {"label": "$nameLab","name": "$nameLab","id": "$assigneeUser"}}'echo "mandatoryFields : " $mandatoryFieldsecho "Creating and running an automation task ..."curl -o headers -s -v -k --location --request POST "https://prod-vortexapi.zephyr4jiracloud.com/api/v1/automation/job/saveAndExecute" -H "accessKey:$accessKey" -H "jwt:$jwt" -F "jobName=$jobName" -F "jobDescription=$taskDescription" -F "automationFramework=$automationFramework" -F "projectKey=$projectKey" -F "versionName=$versionName" -F "cycleName=$cycleName" -F file=@$resultPath -F "createNewCycle=$createNewCycle" -F "appendDateTimeInCycleName=$appendDateTimeInCycleName" -F "folderName=$folderName" -F "createNewFolder=$createNewFolder" -F "appendDateTimeInFolderName=$appendDateTimeInFolderName" -F "assigneeUser=$assigneeUser" -F "mandatoryFields='"$mandatoryFields"'result=$(cat  headers | head -n 1)echo "The Verdict is"echo "FINAL RESULT IS : " $result

Response

> User-Agent: curl/7.61.1> Accept: */*> Content-Type: application/json> Content-Length: 270> { [5 bytes data]* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!} [5 bytes data]* We are completely uploaded and fine{ [5 bytes data]< HTTP/2 200 < date: Mon, 10 Jun 2024 18:33:22 GMT< content-type: text/plain;charset=UTF-8< content-length: 489< { [489 bytes data]* Connection #0 to host prod-vortexapi.zephyr4jiracloud.com left intactThe generated token:The JWT Token Is :  JWT ey**************************************************________________________________________________________________________________________ mandatoryFields :  {"customfield_10171": "ScenarioX2","description": "des2 mand","reporter": {"label": "zephyrtoscaIntegration","name": "zephyrtoscaIntegration","id": "712020:02c9f26"}}Creating and running an automation task ...sh: -c: line 89: unexpected EOF while looking for matching `"'


Viewing all articles
Browse latest Browse all 1486

Trending Articles