Hello,

For the life of me, I can't seem to trigger things like configuration reload
via the /graphserver/gwc/rest/ interface. Has anyone had success doing this?
(I'm also trying to seed, but this seemed like something simpler that was in
my way first)

I thought that I was doing something wrong, but I run this through wget, and
I still have problems. See below for wget output. I am trying to replicate
the request that I see being sent to GWC (by using firebug to inspect the
request/response). What am I missing here? Why can't I successfully do
something like reload the config?

Thanks,
David

--------------------------------

dzwarg@geoserver:~$ wget -d -O - --http-user=admin --http-password=geoserver
--header='Content-Type: application/x-www-form-urlencoded'
--header='Accepts: text/html' --header='Content-Length: 22'
--post-data='reload_configuration=1'
http://10.0.0.100:8080/geoserver/gwc/rest/reload/
Setting --output-document (outputdocument) to -
Setting --http-user (httpuser) to admin
Setting --http-password (httppassword) to geoserver
Setting --header (header) to Content-Type: application/x-www-form-urlencoded
Setting --header (header) to Accepts: text/html
Setting --header (header) to Content-Length: 22
Setting --post-data (postdata) to reload_configuration=1
DEBUG output created by Wget 1.12 on linux-gnu.

--2011-01-26 03:47:11--  http://10.0.0.100:8080/geoserver/gwc/rest/reload/
Host `10.0.0.100' has not issued a general basic challenge.
Connecting to 10.0.0.100:8080... connected.
Created socket 3.
Releasing 0x08e60438 (new refcount 0).
Deleting unused 0x08e60438.

---request begin---
POST /geoserver/gwc/rest/reload/ HTTP/1.0
User-Agent: Wget/1.12 (linux-gnu)
Accept: */*
Host: 10.0.0.100:8080
Connection: Keep-Alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 22
Accepts: text/html

---request end---
[POST data: reload_configuration=1]
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 401 Unauthorized
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=A552C11CFB80CC5974F8D72D74316729; Path=/geoserver
WWW-Authenticate: Basic realm="GeoServer Realm"
Content-Type: text/html;charset=utf-8
Content-Length: 1119
Date: Wed, 26 Jan 2011 08:47:11 GMT
Connection: keep-alive

---response end---
401 Unauthorized

Stored cookie 10.0.0.100 8080 /geoserver <session> <insecure> [expiry none]
JSESSIONID A552C11CFB80CC5974F8D72D74316729
Registered socket 3 for persistent reuse.
Skipping 1119 bytes of body: [<html><head><title>Apache Tomcat/6.0.24 -
Error report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
</head><body><h1>HTTP Status 401 - Full authentication is required to access
this resource</h1><HR size="1" noshade="noshade"><p><b>type</b> Status
report</p><p><b>message</b> <u>Full authentication is required to access
this resource</u></p><p><b>description</b> <u>This request requires HTTP
authentication (Full authentication is required to access this
resource).</u></p><HR size="1" noshade="noshade"><h3>Apache
Tomcat/6.0.24</h3></body></html>] done.
Inserted `10.0.0.100' into basic_authed_hosts
Reusing existing connection to 10.0.0.100:8080.
Reusing fd 3.

---request begin---
POST /geoserver/gwc/rest/reload/ HTTP/1.0
User-Agent: Wget/1.12 (linux-gnu)
Accept: */*
Host: 10.0.0.100:8080
Connection: Keep-Alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 22
Accepts: text/html
Authorization: Basic YWRtaW46Z2Vvc2VydmVy

---request end---
[POST data: reload_configuration=1]
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 400 Bad Request
Date: Wed, 26 Jan 2011 08:47:11 GMT
Server: Noelios-Restlet-Engine/1.0..8
Content-Type: text/plain;charset=ISO-8859-1
Content-Length: 194
Connection: close

---response end---
400 Bad Request
Disabling further reuse of socket 3.
Closed fd 3
2011-01-26 03:47:11 ERROR 400: Bad Request.
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to