restman
restman copied to clipboard
Must be User Error!
Hi.
Running Restman. Could have sworn I've run it before with success. So, I must be missing something subtle.
My use case/test:
I'm trying to run a "POST" test. I can generate/run the target URL in the browser/chrome. I can extract the "Curl" cmd for the actual POST, and run the actual CURL cmd from the linux cmdline.
I can't seem to figure out how to invoke the "POST" using Restman. The target server returns a "404" indicating I'm not submitting the Post data correctly.
Is the POST Data supposed to be entered into the "Body" section as RAW?
The following is a sample of the data I'm using for the given dialog/area of the Restman app.
(I've also included a copy of the actual/working curl cmd. The curl won't run, as the cookie will have been changed by now) !!!
If you could take a quick look, and point out my error, I'd really appreciate it!
thanks
"POST" ---->>target URL https://svc.bkstr.com/courseMaterial/results?storeId=10534&langId=-1&catalogId=11077&requestType=DDCSBrowse
Headers:
Cookie dtCookie=v_4_srv_7_sn_B2804FFB6BC86B1AA328DD5DD6A6D392_perc_100000_ol_0_mul_1_app-3A45f2676e29f53eb9_1; __gads=ID=161d38a735d0ad51:T=1627691552:S=ALNI_MYM-vLjxFjlKSBSKkqyyBnvJBpapg; rxVisitor=162749310494406FEIL0PS7IAQ7HRD42G67VGUDCKCVUD; TLTSID=38054086832613468177590147978329; RES_TRACKINGID=533214838233538; efollett_rt=G; pxcts=cf7ff4f0-f196-11eb-8ff0-f3d3e60e7445; pxvid=cf7f8e46-f196-11eb-83f8-0242ac120008; ga=GA1.2.11399013.1627691556; dtm_token_sc=AQEHXwC5huibIQFV3-4AQEBAQA; dtm_token=AQEHXwC5huibIQFV3-4AQEBAQA; _pubcid=e23d5388-dbe1-4b9d-8566-f75994d5d4da; _gcl_au=1.1.86154986.1627691562; AMCVS_712B7B2A53ABFF670A490D45%40AdobeOrg=1; s_cc=true; IR_gbd=bkstr.com; _fbp=fb.1.1627691604558.2070023700; _scid=5f4a9ce6-937b-4ed8-8e00-88f91b4b6c34; _cc_id=81d737495b1b8e1c1c448ac42deb3fdb; panoramaId=16bcea10bacade48200464c150dc4945a702b361040c585a6c899ecfe069c614; AffinityID=\u00215C6uA8upx+2oIuGx8xDn5ZdXLIQwZqNp/Z0eNjuIql2eqMXHNRaGS3cHLya/dmJeh+qOEeprLBIuM9w=; panoramaId_expiry=1629043674356; _pxhd=65CEWq4RZTfNTm5SfJp9VxT8MX/2srR5hjgA/FhpVHxFXtJQWPJhaHF7B/e-dCPnIn6a3XG2WnpgYNYtCXmOnw==:7ofhzUOoNn76s2b-8yNO9eiOzS/8MPUoNS7JRWLtSJGdmlMpSz74SH202PldDXuZHhRX1fajXjSD4CltzHoEBGydYIwdTPHMpb/yGRn8ZVc=; _sctr=1|1631332800000; AMCV_712B7B2A53ABFF670A490D45%40AdobeOrg=-432600572%7CMCIDTS%7C18887%7CMCMID%7C16642488439628343303274171215650380171%7CMCAAMLH-1632413392%7C7%7CMCAAMB-1632413392%7CRKhpRz8krg2tLO6pguXWp5olkAcUniQYPHaMWWgdJ3xzPWQmdj0y%7CMCOPTOUT-1631815792s%7CNONE%7CvVersion%7C4.5.2; _gid=GA1.2.1151104327.1631808593; AKA_A2=A; dtSa=-; efollett_puid=1631808852195-59728; s_ips=2035; IR_2379=1631808851388%7C127923%7C1631808851388%7C%7C; IR_PI=a7feb5a7-c3fa-11eb-b663-42010a246d2f%7C1631895251388; _uetsid=8b4d16a0170811ec8301bb45e7d616d3; _uetvid=ea54f5c0f19611eb81ab03e4fcf23f62; OptanonConsent=isIABGlobal=false&datestamp=Thu+Sep+16+2021+12%3A14%3A17+GMT-0400+(Eastern+Daylight+Time)&version=6.13.0&hosts=&consentId=32d9e214-f132-482a-bb2e-4b265f91b8b1&interactionCount=1&landingPath=NotLandingPage&groups=1%3A1%2C2%3A1%2C3%3A1%2C4%3A1&AwaitingReconsent=false; _px3=e854663fd638206d8d935a58ae7cc88bea1cb8d9881dea2504feeb0a751f7002:J8lnll26nveffb+PfJSbauMiB+YaJyL+44AHoY1EjdEnIrLLaX+lcmt3ecdpwT5pKonjhRhFzMueh0dqDp1ewA==:1000:VoJwrPDglsMD94+CD2t4BCO/qk8kGu6ICzw88g6IbOVGMnsTq2QzyAvzyVqzWZwRLvcnWH5/1QujmLjXD8vm4jkAFPSOI39TFvszsAljbWirE9ffhI0mquA0dEiNYL4uBe1fxN/DJ1zT5TNgJaT+uwZEllAJzt/Q4kDf9yMUggW+hgACSdKO9C+TbZI4aHbKA7zHkXo0ble0HssIJ1wnxw==; s_sq=%5B%5BB%5D%5D; s_tp=1208; s_ppv=173%253ATextbooks%2520-%2520Select%2520by%2520DDCS%2C196%2C168%2C2367%2C2%2C3; rxvt=1631811263995|1631808587694; dtLatC=212; dtPC=7$408850311_841h47vMREEOGHIMRFIDFDWFRCMKEPOFPSJCVCJ-0e0
Body RAW/Json {"storeId":"10534","termId":"100070114","programId":"137","courses":[{"secondaryvalues":"ABX/0100/A101","divisionDisplayName":"","departmentDisplayName":"ABX","courseDisplayName":"0100","sectionDisplayName":"A101"}]}
The actual curl cmd that did run is;:
curl -v -sS -k -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0' -H 'Accept: application/json, text/plain, /' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Content-Type: application/json' -H 'Origin: https://www.bkstr.com' -H 'Connection: keep-alive' -H 'Referer: https://www.bkstr.com/arizonastatestore/course-materials-results' -H 'Cookie: dtCookie=v_4_srv_7_sn_B2804FFB6BC86B1AA328DD5DD6A6D392_perc_100000_ol_0_mul_1_app-3A45f2676e29f53eb9_1; __gads=ID=161d38a735d0ad51:T=1627691552:S=ALNI_MYM-vLjxFjlKSBSKkqyyBnvJBpapg; rxVisitor=162749310494406FEIL0PS7IAQ7HRD42G67VGUDCKCVUD; TLTSID=38054086832613468177590147978329; RES_TRACKINGID=533214838233538; efollett_rt=G; pxcts=cf7ff4f0-f196-11eb-8ff0-f3d3e60e7445; pxvid=cf7f8e46-f196-11eb-83f8-0242ac120008; ga=GA1.2.11399013.1627691556; dtm_token_sc=AQEHXwC5huibIQFV3-4AQEBAQA; dtm_token=AQEHXwC5huibIQFV3-4AQEBAQA; _pubcid=e23d5388-dbe1-4b9d-8566-f75994d5d4da; _gcl_au=1.1.86154986.1627691562; AMCVS_712B7B2A53ABFF670A490D45%40AdobeOrg=1; s_cc=true; IR_gbd=bkstr.com; _fbp=fb.1.1627691604558.2070023700; _scid=5f4a9ce6-937b-4ed8-8e00-88f91b4b6c34; _cc_id=81d737495b1b8e1c1c448ac42deb3fdb; panoramaId=16bcea10bacade48200464c150dc4945a702b361040c585a6c899ecfe069c614; AffinityID=\u00215C6uA8upx+2oIuGx8xDn5ZdXLIQwZqNp/Z0eNjuIql2eqMXHNRaGS3cHLya/dmJeh+qOEeprLBIuM9w=; panoramaId_expiry=1629043674356; _pxhd=65CEWq4RZTfNTm5SfJp9VxT8MX/2srR5hjgA/FhpVHxFXtJQWPJhaHF7B/e-dCPnIn6a3XG2WnpgYNYtCXmOnw==:7ofhzUOoNn76s2b-8yNO9eiOzS/8MPUoNS7JRWLtSJGdmlMpSz74SH202PldDXuZHhRX1fajXjSD4CltzHoEBGydYIwdTPHMpb/yGRn8ZVc=; _sctr=1|1631332800000; AMCV_712B7B2A53ABFF670A490D45%40AdobeOrg=-432600572%7CMCIDTS%7C18887%7CMCMID%7C16642488439628343303274171215650380171%7CMCAAMLH-1632413392%7C7%7CMCAAMB-1632413392%7CRKhpRz8krg2tLO6pguXWp5olkAcUniQYPHaMWWgdJ3xzPWQmdj0y%7CMCOPTOUT-1631815792s%7CNONE%7CvVersion%7C4.5.2; _gid=GA1.2.1151104327.1631808593; AKA_A2=A; dtSa=-; efollett_puid=1631808852195-59728; s_ips=2035; IR_2379=1631808851388%7C127923%7C1631808851388%7C%7C; IR_PI=a7feb5a7-c3fa-11eb-b663-42010a246d2f%7C1631895251388; _uetsid=8b4d16a0170811ec8301bb45e7d616d3; _uetvid=ea54f5c0f19611eb81ab03e4fcf23f62; OptanonConsent=isIABGlobal=false&datestamp=Thu+Sep+16+2021+12%3A14%3A17+GMT-0400+(Eastern+Daylight+Time)&version=6.13.0&hosts=&consentId=32d9e214-f132-482a-bb2e-4b265f91b8b1&interactionCount=1&landingPath=NotLandingPage&groups=1%3A1%2C2%3A1%2C3%3A1%2C4%3A1&AwaitingReconsent=false; _px3=e854663fd638206d8d935a58ae7cc88bea1cb8d9881dea2504feeb0a751f7002:J8lnll26nveffb+PfJSbauMiB+YaJyL+44AHoY1EjdEnIrLLaX+lcmt3ecdpwT5pKonjhRhFzMueh0dqDp1ewA==:1000:VoJwrPDglsMD94+CD2t4BCO/qk8kGu6ICzw88g6IbOVGMnsTq2QzyAvzyVqzWZwRLvcnWH5/1QujmLjXD8vm4jkAFPSOI39TFvszsAljbWirE9ffhI0mquA0dEiNYL4uBe1fxN/DJ1zT5TNgJaT+uwZEllAJzt/Q4kDf9yMUggW+hgACSdKO9C+TbZI4aHbKA7zHkXo0ble0HssIJ1wnxw==; s_sq=%5B%5BB%5D%5D; s_tp=1208; s_ppv=173%253ATextbooks%2520-%2520Select%2520by%2520DDCS%2C196%2C168%2C2367%2C2%2C3; rxvt=1631811263995|1631808587694; dtLatC=212; dtPC=7$408850311_841h47vMREEOGHIMRFIDFDWFRCMKEPOFPSJCVCJ-0e0' -H 'TE: Trailers' -H 'TE: Trailers' -d '{"storeId":"10534","termId":"100070114","programId":"137","courses":[{"secondaryvalues":"ABX/0100/A101","divisionDisplayName":"","departmentDisplayName":"ABX","courseDisplayName":"0100","sectionDisplayName":"A101"}]}' -L 'https://svc.bkstr.com/courseMaterial/results?storeId=10534&langId=-1&catalogId=11077&requestType=DDCSBrowse'