cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Issue with file upload using curl

From: Raviteja Tirumalasetti <tirumalasetti14_at_gmail.com>
Date: Thu, 13 Dec 2012 10:17:22 -0500

Thanks for the information Dan, I am able to view the operations using
the LiveHttpHeaders tool for check in the file. But, I am not able to
do it the same way using curl. Can you please let me know how to do
the below operation using curl?

http://cortex.cablevision.com/sites/metdev/FiOS/_layouts/checkin.aspx?List={3A3345D3-2F7A-4366-9920-9CDE38B81958}&FileName=%2Fsites%2Fmetdev%2FFiOS%2FShared%20Documents%2FMDU%20uploads%2Ftest%2Ecsv&IsDlg=1

POST /sites/metdev/FiOS/_layouts/checkin.aspx?List={3A3345D3-2F7A-4366-9920-9CDE38B81958}&FileName=%2Fsites%2Fmetdev%2FFiOS%2FShared%20Documents%2FMDU%20uploads%2Ftest%2Ecsv&IsDlg=1
HTTP/1.1
Host: cortex.cablevision.com
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20100101 Firefox/17.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Referer: http://cortex.cablevision.com/sites/metdev/FiOS/_layouts/checkin.aspx?List={3A3345D3-2F7A-4366-9920-9CDE38B81958}&FileName=%2Fsites%2Fmetdev%2FFiOS%2FShared%20Documents%2FMDU%20uploads%2Ftest%2Ecsv&IsDlg=1
Cookie: WSS_KeepSessionAuthenticated={c968db7a-988a-496a-ace6-78581fa0a48c};
previousLoggedInAs=; loginAsDifferentAttemptCount=;
Ribbon.DocLibListForm.Edit=665346|-1|412|-1565964776;
Ribbon.Document=936734|3|63|437088820;
Ribbon.Read=936734|-1|0|437088820
DNT: 1
Content-Type: application/x-www-form-urlencoded
Content-Length: 3187
MSOWebPartPage_PostbackSource=&MSOTlPn_SelectedWpId=&MSOTlPn_View=0&MSOTlPn_ShowSettings=False&MSOGallery_SelectedLibrary=&MSOGallery_FilterString=&MSOTlPn_Button=none&MSOSPWebPartManager_DisplayModeName=Browse&MSOSPWebPartManager_ExitingDesignMode=false&__EVENTTARGET=&__EVENTARGUMENT=&MSOWebPartPage_Shared=&MSOLayout_LayoutChanges=&MSOLayout_InDesignMode=&MSOSPWebPartManager_OldDisplayModeName=Browse&MSOSPWebPartManager_StartWebPartEditingName=false&MSOSPWebPartManager_EndWebPartEditing=false&_maintainWorkspaceScrollPosition=0&__REQUESTDIGEST=0x99B19769BB321CE3BD03D32C9AE227493CA57B5F45DD17B331480E8A98600F5CBB621A45F0C9E8716B3FC74671CD19A7911D348754A2B612198AEE258943C7AC%2C12+Dec+2012+22%3A50%3A47+-0000&__VIEWSTATE=%2FwEPDwUKLTkxMjg1MDA3OA9kFgJmD2QWAgIBDxYCHgVjbGFzcwUWbXMtZGlhbG9nIG1zLWRpYWxvZy1uchYEAgEPZBYCAgYPZBYCZg9kFgICAQ8WAh4EVGV4dAUIQ2hlY2sgaW5kAgMPZBYMAhEPZBYEZg9kFgQCAQ9kFgJmD2QWBAICD2QWCgIBDxYCHgdWaXNpYmxlaGQCAw8WCB4TQ2xpZW50T25DbGlja1NjcmlwdAWRAWphdmFTY3JpcHQ6Q29yZUludm9rZSgnVGFrZU9mZmxpbmVUb0NsaWV
udFJlYWwnLDEsIDEsICdodHRwOlx1MDAyZlx1MDAyZmNvcnRleC5jYWJsZXZpc2lvbi5jb21cdTAwMmZzaXRlc1x1MDAyZm1ldGRldlx1MDAyZkZpT1MnLCAtMSwgLTEsICcnLCAnJykeGENsaWVudE9uQ2xpY2tOYXZpZ2F0ZVVybGQeKENsaWVudE9uQ2xpY2tTY3JpcHRDb250YWluaW5nUHJlZml4ZWRVcmxkHgxIaWRkZW5TY3JpcHQFIVRha2VPZmZsaW5lRGlzYWJsZWQoMSwgMSwgLTEsIC0xKWQCCQ8WAh8CaGQCEQ8WAh8CaGQCFQ8WAh8CaGQCAw8PFgoeCUFjY2Vzc0tleQUBLx4PQXJyb3dJbWFnZVdpZ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pkZAICDxYCHwJoZAICD2QWBAIBD2QWAmYPFgIfAQUNVXBkYXRlIENvcGllc2QCBA9kFgICAQ9kFgRmD2QWAmYPDxYCHwEFNFVwZGF0ZSBjb3BpZXMgb2YgdGhpcyBkb2N1bWVudCB3aXRoIHRoZSBuZXcgdmVyc2lvbj9kZAICDxYCHwJoZAIDD2QWAgIBD2QWAmYPFgQeCWFjY2Vzc2tleQUBQx4Hb25jbGljawUvd2luZG93LmZyYW1lRWxlbWVudC5jYW5jZWxQb3BVcCgpO3JldHVybiBmYWxzZTtkGAIFOmN0bDAwJFBsYWNlSG9sZGVyVG9wTmF2QmFyJElkVG9wTmF2QmFyJFRvcE5hdmlnYXRpb25NZW51VjQPD2QFBEZpT1NkBThjdGwwMCRQbGFjZUhvbGRlclRvcE5hdkJhciRJZFRvcE5hdkJhciRUb3BOYXZpZ2F0aW9uTWVudQ8PZAUERmlPU2TzXgzsk%2FrKgQ3q32%2FgS5hCJ6SbcQ%3D%3D&__SCROLLPOSITIONX=0&__SCROLLPOSITIONY=0&__EVENTVALIDATION=%2FwEWAgLVxbrMAgLB6MisCmAyTk1oij2%2FZL0%2BCajz
4OYyf3EG&PostBack=true&CheckinAction=ActionCheckinPublish&CheckinActionRG=on&CheckinDescription=&__spText1=&__spText2=
HTTP/1.1 200 OK
Cache-Control: private
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8
Content-Encoding: gzip
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
SPRequestGuid: 4c99cc8a-0252-4940-9967-88b883efd66a
Set-Cookie: WSS_KeepSessionAuthenticated={c968db7a-988a-496a-ace6-78581fa0a48c};
path=/
Set-Cookie: WSS_KeepSessionAuthenticated={c968db7a-988a-496a-ace6-78581fa0a48c};
path=/
X-SharePointHealthScore: 0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 14.0.0.6010
Date: Wed, 12 Dec 2012 22:50:52 GMT
----------------------------------------------------------
http://cortex.cablevision.com/sites/metdev/FiOS/SitePages/Home.aspx?RootFolder=%2Fsites%2Fmetdev%2FFiOS%2FShared%20Documents%2FMDU%20uploads&FolderCTID=0x01200072343C40C9D61C46B671CC9D2B7FAC40&View={EE4B7094-432D-440C-A202-79A1E580858D}&InitialTabId=Ribbon%2EDocument&VisibilityContext=WSSTabPersistence

POST /sites/metdev/FiOS/SitePages/Home.aspx?RootFolder=%2Fsites%2Fmetdev%2FFiOS%2FShared%20Documents%2FMDU%20uploads&FolderCTID=0x01200072343C40C9D61C46B671CC9D2B7FAC40&View={EE4B7094-432D-440C-A202-79A1E580858D}&InitialTabId=Ribbon%2EDocument&VisibilityContext=WSSTabPersistence
HTTP/1.1
Host: cortex.cablevision.com
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20100101 Firefox/17.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Referer: http://cortex.cablevision.com/sites/metdev/FiOS/SitePages/Home.aspx?RootFolder=%2Fsites%2Fmetdev%2FFiOS%2FShared%20Documents%2FMDU%20uploads&FolderCTID=0x01200072343C40C9D61C46B671CC9D2B7FAC40&View={EE4B7094-432D-440C-A202-79A1E580858D}&InitialTabId=Ribbon%2ERead&VisibilityContext=WSSTabPersistence
Cookie: stsSyncAppName=Client; stsSyncIconPath=;
loginAsDifferentAttemptCount=0;
WSS_KeepSessionAuthenticated={c968db7a-988a-496a-ace6-78581fa0a48c};
previousLoggedInAs=; loginAsDifferentAttemptCount=;
Ribbon.DocLibListForm.Edit=665346|-1|412|-1565964776;
Ribbon.Document=936734|3|63|437088820;
Ribbon.Read=936734|-1|0|437088820
DNT: 1
Content-Type: application/x-www-form-urlencoded
Content-Length: 11414
MSOWebPartPage_PostbackSource=&MSOTlPn_SelectedWpId=&MSOTlPn_View=0&MSOTlPn_ShowSettings=False&MSOGallery_SelectedLibrary=&MSOGallery_FilterString=&MSOTlPn_Button=none&_wikiPageMode=&__EVENTTARGET=&__EVENTARGUMENT=&__REQUESTDIGEST=0x634D1E018D9A2DEB877D6B0D19EA7A94CCBEAB8882EFF823D0967EA7A04B8104AD61BD3AC5030B9D20AF145DD360B48EABC9F54D19F2237972C192AA90955B03%2C12+Dec+2012+22%3A50%3A38+-0000&MSOAuthoringConsole_FormContext=&MSOAC_EditDuringWorkflow=&InputComments=&_wikiPageCommand=&SPPageStateContext_PreviousAuthoringVersion=19&MSOSPWebPartManager_DisplayModeName=Browse&MSOSPWebPartManager_ExitingDesignMode=false&MSOWebPartPage_Shared=&MSOLayout_LayoutChanges=&MSOLayout_InDesignMode=&_wpSelected=MSOZoneCell_WebPartWPQ3&_wzSelected=&MSOSPWebPartManager_OldDisplayModeName=Browse&MSOSPWebPartManager_StartWebPartEditingName=false&MSOSPWebPartManager_EndWebPartEditing=false&_maintainWorkspaceScrollPosition=0&SPPageStateContext_PreviousAuthoringItemUser=1&__VIEWSTATE=%2FwEPDwUILTc2NTI4NzYPZBYCZg9kFgICAQ9kFgICAw9kF
g4CAw9kFgYFJmdfYjY2MDAzM2FfMzE3NF80Y2ZhXzg4OTlfNTc1OTIwYzE0MWE0EA8WBh4LUGFyYW1WYWx1ZXMy8QcAAQAAAP%2F%2F%2F%2F8BAAAAAAAAAAwCAAAAWE1pY3Jvc29mdC5TaGFyZVBvaW50LCBWZXJzaW9uPTE0LjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPTcxZTliY2UxMTFlOTQyOWMFAQAAAD1NaWNyb3NvZnQuU2hhcmVQb2ludC5XZWJQYXJ0UGFnZXMuUGFyYW1ldGVyTmFtZVZhbHVlSGFzaHRhYmxlAQAAAAVfY29sbAMcU3lzdGVtLkNvbGxlY3Rpb25zLkhhc2h0YWJsZQIAAAAJAwAAAAQDAAAAHFN5c3RlbS5Db2xsZWN0aW9ucy5IYXNodGFibGUHAAAACkxvYWRGYWN0b3IHVmVyc2lvb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2aWdhdGlvbk1lbnVWNA8PZAUERmlPU2SPoYVu9whtLpeGEOeQ1613Aoa%2FAA%3D%3D&__SCROLLPOSITIONX=0&__SCROLLPOSITIONY=0&__EVENTVALIDATION=%2FwEWBQLW057wAgLKnfnKCALYsqj0BgL29qKJBwLXh8HVC7YqVDTDhoo0xWTkf2QQ2iL1hNXI&ctl00%24ctl27=Ribbon.Document&ctl00%24PlaceHolderPageTitleInTitleAr
ea%24wikiPageNameEditTextBox=Home&SearchScope=http%3A%2F%2Fcortex.cablevision.com%2Fsites%2Fmetdev%2FFiOS&SearchString=&__spText1=&__spText2=&_wpcmWpid=&wpcmVal=
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Encoding: gzip
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
SPRequestGuid: 79b4d689-d22e-4e17-bc0e-c9834ed0d19d
Set-Cookie: WSS_KeepSessionAuthenticated={c968db7a-988a-496a-ace6-78581fa0a48c};
path=/
Set-Cookie: WSS_KeepSessionAuthenticated={c968db7a-988a-496a-ace6-78581fa0a48c};
path=/
X-SharePointHealthScore: 0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 14.0.0.6010
Date: Wed, 12 Dec 2012 22:50:52 GMT
Content-Length: 57448

On 12/11/12, Dan Fandrich <dan_at_coneharvesters.com> wrote:
> On Tue, Dec 11, 2012 at 02:59:03PM -0500, Raviteja Tirumalasetti wrote:
>> I am using curl to upload a file to sharepoint site from unix environment,
>> the
>> files I uploaded are coming as checked out versions and not visible to
>> another
>> users. Does any one know how can I load the files as check in version
>> using
>> curl?
>
> Take a look at what a browser does to perform the same operation, using
> a tool like LiveHttpHeaders designed to capture those operations, then
> script them yourself using curl. There are more details available at
> http://curl.haxx.se/docs/httpscripting.html
>
>>>> Dan
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-users
> FAQ: http://curl.haxx.se/docs/faq.html
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-12-13