FAQ Database Discussion Community


Gravatar json profile request 403 forbidden

c#,json,http-status-code-403,gravatar
I am currently playing with the gravatar api, by writing a C# application. Firstly, I tried to get my gravatar picture. It worked. After that, I tried to get the profile QR code. It worked. Now, I want retrieve my profile information in json. I followed the indications given by...

Random Apache 403 Errors

apache,http-status-code-403
I am getting random 403 errors on my local machine. I will be viewing my local site, everything working just fine, then I will refresh the page and it will throw a 403 error. If I restart apache everything works for a period of time and then all of a...

Apache2 RewriteEngine causing 403 Error

apache,mod-rewrite,apache2,httpd.conf,http-status-code-403
I used the following config on apache2 conf file " RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.html [NC,L] " so that I would be able to remove the ".html" suffix after my links. This worked fine but when I enter the domain by itself without extensions it will give...

Android RestTemplate 403 Expected CSRF token not found

android,spring,csrf,http-status-code-403,resttemplate
I use spring android to connect my android app to a web service made by Spring MVC and Spring security. this is code snippet that connect to web service: RestTemplate restTemplate = new RestTemplate(); restTemplate.getMessageConverters().add(new GsonHttpMessageConverter()); restTemplate.getMessageConverters().add(new StringHttpMessageConverter()); String token = getToken(context); HttpHeaders httpHeader = new HttpHeaders(); httpHeader.add(RestTemplateHelper.CSRF_TOKEN_HEADER, token); httpHeader.setContentType(MediaType.APPLICATION_JSON);...

403 error only in chrome, works fine in FF and IE

google-chrome,tomcat7,http-status-code-403
I have an application, when I clicked login button, I got an 403 error, and it only happens in Chrome, works fine in all of the other browsers. Here is the log I found from the tomcat log file (localhost_access_log.2015-03-11.txt): 0:0:0:0:0:0:0:1 - - [11/Mar/2015:20:27:42 -0700] "POST /app/login/do_login HTTP/1.1" 403 -...

Spotify SDK iOS SDK 403 error

ios,networking,sdk,spotify,http-status-code-403
New to iOS and programming in general. I'm working with Spotify SDK (beta) to try and make a client to stream tracks that I've saved. When calling their savedTracksForUserInSession method, which I was told to do by their developers, I keep getting a 403 error: Forbidden. My session is good,...

Android: Getting HTTP 403 Forbidden upon calling https://maps.googleapis.com/maps/api/geocode/json

java,android,web-services,google-maps,http-status-code-403
I have been trying to use the Google api, more specifically this URL to get the U.S State and city and I keep on getting a 403 Forbidden HTTP error message, My code goes as follows: private static boolean getAddressResult(String input, StringBuilder jsonResults) { HttpURLConnection conn = null; try {...

WebAPI : 403 Forbidden after publish website

asp.net-web-api,routing,publish,http-status-code-403
Alright, I'm having a tough time locating the problem since it works locally but after doing a publish the results are simply: Error Code: 403 Forbidden. The server denied the specified Uniform Resource Locator (URL). Contact the server administrator. (12202) The code: [RoutePrefix("api/v1/project")] public class ProjectController : BaseApiController { [HttpGet]...

Any way to avoid getting denied (403) due to sending multiple PHP file_get_contents requests?

php,wordpress,http-status-code-403
I have written a WP plug-in that does the following: On every page load, the plugin retrieves Facebook graph data ( social count ) for the entire blog posts, using file_get_contents() and XML feeds. I tested it on a live site that has more than 60 posts, and when I...

Google Translate API text-to-speech: http requests forbidden

javascript,google-api,text-to-speech,http-status-code-403,google-translate
I am making a language learning web app that when you hover over the word, it pronounces it for you. I'd like to access the native speaker translations from Google Translate API. I've found this resource which gives http://translate.google.com/translate_tts as the base URL and tl for target language and q...

SSL certificate error 403.13 in IIS 7.5

internet-explorer,iis-7,ssl-certificate,sha1,http-status-code-403
I'm getting 403.13 in IIS logs, when I'm trying to access my api using the created certificate(sha1). Further I tested the same certificate in other test environment it works treat and I get the the XML from the api without any issue. Certificate pfx is installed in Certificate store and...

JDBC Realm Authentication HTTP Status 403 when using correct credentials (Goes to error page with bad credentials)

authentication,jdbc,http-status-code-403,j-security-check
I'm trying to get authentication for my site using JDBC Realms and I'm getting a HTTP Status 403 - Access to the requested resource has been denied when I use correct credentials. When I use incorrect credentials it goes to the error page like it should. I'm able to query...

Google Webmaster API - Mark crawlerros as fixed

api,http-status-code-403,google-webmaster-tools,google-crawlers
While marking the crawl-errors as fixed via the API, I got an 403 error „Insufficient Permission“. If I only read the erros via the api, I got no errors. I’m the owner of the site and I logged with my google webmaster credentials. I've created the API creditals with the...

java.io.IOException: Server returned HTTP response code: 403 for URL

java,http,http-status-code-403,http-status-codes
I want to open a link from url : "http://www.kohls.com/search.jsp?search=jacket&submit-search=web-regular", sometimes i get: java.io.IOException: Server returned HTTP response code: 403 for URL. But it's ok when open the url using browser. Below is part of my code: URL url = new URL("http://www.kohls.com/search.jsp?search=jacket&submit-search=web-regular"); InputStream is = url.openConnection().getInputStream(); The detail of the...

Slim PHP custom http response pages

php,httpresponse,http-status-code-403,slim
Ok I have read the docs on Slim PHP and read quite a few tutorials, and have an application nicely under way. However I am trying to get to grips with things such as customizing the HTTP response codes. I have managed to get the following : $app->notfound('template.file', array( 'data'...

Socket.io AngularJS Error 403 - Forbidden

angularjs,get,socket.io,chat,http-status-code-403
I have an App on AngularJS but when I try to integrate Socket.io to a Chat, it gave me a problem... so here it is: GET http://localhost:2772/socket.io/?EIO=3&transport=polling&t=1433165408651-0 403 (Forbidden) Its on socket.io-1.3.5.js library An the principal error its here xhr.send(this.data)}catch(e){... Anyone knows what is the problem?...

How to send message or redirect user when security constraint block access

jsf,glassfish,web.xml,http-status-code-403,security-constraint
I have following security constraint in my web.xml <security-constraint> <display-name>Admin Pages</display-name> <web-resource-collection> <web-resource-name>Protected Admin Area</web-resource-name> <description/> <url-pattern>/administrator/*</url-pattern> <url-pattern>/faces/backend/*</url-pattern> <http-method>GET</http-method> <http-method>POST</http-method> <http-method>HEAD</http-method>...

How to fix urlConnection.getResponseCode = 403

android,json,http-status-code-403,urlconnection,http-response-codes
Here is my code: urlConnection = (HttpURLConnection) url.openConnection(); urlConnection.setRequestMethod("GET"); urlConnection.connect(); int status = urlConnection.getResponseCode(); // Read the input stream into a String InputStream inputStream = urlConnection.getInputStream(); StringBuffer buffer = new StringBuffer(); if (inputStream == null) { return; } reader = new BufferedReader(new InputStreamReader(inputStream)); Here is example of my JSON:...