Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] Why do I get "301 Moved Permanently" when trying to publish data?

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] Why do I get "301 Moved Permanently" when trying to publish data?


Chronological Thread 
  • From: Alan Whinery <>
  • To: Robert Frank <>, Antoine Delvaux <>
  • Cc: "" <>
  • Subject: Re: [perfsonar-user] Why do I get "301 Moved Permanently" when trying to publish data?
  • Date: Tue, 21 Apr 2015 07:53:15 -1000

Confirmed (just now almost 8 AM in Hawaii).

Thanks, Robert.
Thanks Antoine.

For the documenters, this point probably makes a good FAQ point or
specific notation in the instructions.

On 4/20/2015 8:38 PM, Robert Frank wrote:
> Hi,
>
> the problem might just be a missing / at the end of the url:
>
> curl http://localhost/esmond/perfsonar/archive => returns a 301
>
> curl http://localhost/esmond/perfsonar/archive/ => returns the data
>
> Cheers,
> Robert
>
> On 20/04/15 19:55, Antoine Delvaux wrote:
>> Hi Alan,
>>
>> I’m no esmond expert, but it might just be a curl failure. Have you
>> tried adding the -L option to your query?
>>
>> Running the examples on a regular 3.4.2 perfSONAR node I don’t see
>> this error. Do you have some customisation in place?
>>
>> Antoine.
>>
>>
>>> Le 18 avr. 2015 à 01:57, Alan Whinery
>>> <>
>>> a écrit :
>>>
>>> I'm attempting to publish data to esmond, using examples from both the
>>> perl client and rest client example pages --
>>> http://software.es.net/esmond/perfsonar_client_rest.html
>>> http://software.es.net/esmond/perfsonar_client_perl.html
>>>
>>> I'm assuming that if I use the credentials found in
>>> /opt/perfsonar/regular_testing/etc/regular_testing.conf, I should be
>>> able to perform the "publishing data" examples.
>>>
>>> On the curl based REST example, with the changed api-key and changing
>>> the query URL to http://localhost/esmond/perfsonar/archive/ the
>>> response is:
>>>
>>>
>>>> HTTP/1.1 301 MOVED PERMANENTLY
>>>> Date: Sat, 18 Apr 2015 01:05:19 GMT
>>>> Server: Apache/2.2.15 (CentOS)
>>>> Location: http://localhost/esmond/perfsonar/archive/
>>>> Content-Length: 0
>>>> Connection: close
>>>> Content-Type: text/html; charset=utf-8
>>>
>>> So I moved to the Perl client and got:
>>>> 301 MOVED PERMANENTLY at ./publish-example.pl line 34
>>>
>>> I tried supplying the wrong password to see if I got a "AUTH FAIL" or
>>> something, but that just gets "301 MOVED PERMANENTLY" too.
>>>
>>> What am I missing?
>>>
>>> -Alan
>>>
>>>
>>




Archive powered by MHonArc 2.6.16.

Top of Page