Mobile app version of vmapp.org
Login or Join
Si4351233

: Re-submit a sitemap to Google Webmaster tools via command line? I'm on Windows 8.1, trying to resubmit an existing sitemap to Google Webmaster tools via the commandline. I've read the documentation

@Si4351233

Posted in: #Api #GoogleSearchConsole

I'm on Windows 8.1, trying to resubmit an existing sitemap to Google Webmaster tools via the commandline.

I've read the documentation here but I can't get it to work.

I've followed the instructions for authorising OACurl etc - I'm using the Cygwin terminal for windows.

I'm able to run commands such as

java -cp oacurl-1.3.0.jar com.google.oacurl.Fetch "https://www.googleapis.com/webmasters/v3/sites"


Which gives me a result like so

{
"siteEntry": [
{
"siteUrl": "http://catamac.com.au/",
"permissionLevel": "siteOwner"
},
{
"siteUrl": "http://www.catamac.com.au/",
"permissionLevel": "siteOwner"
},
{
"siteUrl": "http://www.onlinestore.catamac.com.au/",
"permissionLevel": "siteOwner"
},
{
"siteUrl": "http://onlinestore.catamac.com.au/",
"permissionLevel": "siteOwner"
}
]
}


I can't see any documentation however, on submitting sitemaps using OACurl?

I'd really like to be able to perform this operation using CURL from the Windows Command Line, using code from here except I get the following error message when I try and run this command: (obviously replacing my API key)

curl PUT www.googleapis.com/webmasters/v3/sites/http%3A%2F%2Fwww.onlinestore.catamac.com.au%2F/sitemaps/http%3A%2F%2Fwww.onlinestore.catamac.com.au%2Fsitemap-engineparts.txt?key={YOUR_API_KEY}

Error message:

curl: (6) Could not resolve host: PUT; Host not found
{
"error": {
"errors": [
{
"domain": "global",
"reason": "required",
"message": "Login Required",
"locationType": "header",
"location": "Authorization"
}
],
"code": 401,
"message": "Login Required"
}
}

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Si4351233

1 Comments

Sorted by latest first Latest Oldest Best

 

@Sue5673885

I have superseded my need to submit this sitemap to Google. Another user helpfully pointed out that Google will notice the additions to my sitemap, without me having to re-submit it. Thanks!

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme