humbads

BigCommerce PROPFIND WebDAV double HTTP code

Mar 16th, 2016
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. $ curl --request PROPFIND --insecure --dump-header head.txt --digest --user [email protected]:ABCDEFG https://www.mystore.com/dav/exports/products-2016-03-17.csv
  2. <?xml version="1.0" encoding="utf-8"?>
  3. <d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  4. <s:exception>Sabre\DAV\Exception\NotFound</s:exception>
  5. <s:message>File with name asset://file/ftp_root/exports/products-2016-03-17.csv could not be located</s:message>
  6. </d:error>
  7.  
  8.  
  9.  
  10. $ cat head.txt
  11. HTTP/1.1 401 Unauthorized
  12. Server: nginx
  13. Date: Thu, 17 Mar 2016 03:45:27 GMT
  14. Content-Type: application/xml; charset=utf-8
  15. Transfer-Encoding: chunked
  16. Connection: keep-alive
  17. Set-Cookie: fornax_anonymousId=920a45aa-d71c-4a86-8fa2-85999b123456; expires=Tue, 13-Sep-2016 03:45:27 GMT; path=/; domain=.me.com
  18. WWW-Authenticate: Digest realm="BigCommerce",qop="auth",nonce="56ea285712345",opaque="df58bdff8cf60599c939187d0123456"
  19.  
  20. HTTP/1.1 404 Not Found
  21. Server: nginx
  22. Date: Thu, 17 Mar 2016 03:45:27 GMT
  23. Content-Type: application/xml; charset=utf-8
  24. Transfer-Encoding: chunked
  25. Connection: keep-alive
  26. Vary: Accept-Encoding
  27. Set-Cookie: fornax_anonymousId=a32ec598-2569-402a-a712-651123456789; expires=Tue, 13-Sep-2016 03:45:27 GMT; path=/; domain=.me.com
  28. Vary: Brief,Prefer
  29. DAV: 1, 3, extended-mkcol, 2
  30.  
  31.  
  32. # NOTE: THE HEAD REQUEST BELOW RETURNS THE SAME RESULT
  33. $ curl --head --insecure --digest --user [email protected]:abcdef https://www.mystore.com/dav/exports/products-2016-03-17.csv
Advertisement
Add Comment
Please, Sign In to add comment