jcledera / sardine

Automatically exported from code.google.com/p/sardine
0 stars 0 forks source link

I want to submit my sitemap_index.xml but i dont know what properly header, content-type and others #137

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I want to submit my sitemap_index.xml on my current siteId and i try to use 
https://developers.google.com/oauthplayground and i got problem when now i used 
POST method oi submitting request.
here details that gave from google.

POST /webmasters/tools/feeds/http%3A%2F%2Fexample.test.com%2Fmain2F/sitemaps 
HTTP/1.1
Host: www.google.com
Gdata-version: 2
Content-length: 0
Content-type: application/json
Enter Requestt body: none

HTTP/1.1 415 Unsupported Media Type
Content-length: 56
X-xss-protection: 1; mode=block
X-content-type-options: nosniff
X-google-cache-control: remote-fetch
-content-encoding: gzip
Server: GSE
Reason: Unsupported Media Type
Via: HTTP/1.1 GWA
Cache-control: private, max-age=0
Date: Wed, 23 Jan 2013 12:01:24 GMT
X-frame-options: SAMEORIGIN
Content-type: text/html; charset=UTF-8
Expires: Wed, 23 Jan 2013 12:01:24 GMT

Content-Type application/json is not a valid input type.

Hope you guys could me help. Thanks you

Original issue reported on code.google.com by suangets...@gmail.com on 23 Jan 2013 at 12:07

GoogleCodeExporter commented 9 years ago
Sorry for my grammar and sentences i was tired to find out this problem.

Original comment by suangets...@gmail.com on 23 Jan 2013 at 12:12

GoogleCodeExporter commented 9 years ago
UPDATES my questions.

How can i insert sitemap_index.xml on google webmaster tool using c# 
HttpWebRequest. i had already verified host site + authencated access token, i 
am really stuck here please help out of this problem thanks. 

By the way i used https://developers.google.com/oauthplayground  as reference 
but still  lack of information about request headers.

Original comment by suangets...@gmail.com on 23 Jan 2013 at 3:39

GoogleCodeExporter commented 9 years ago

Original comment by dkocher@sudo.ch on 18 Apr 2013 at 8:20