http-status-code-401

IOSLinkedInAPI: Can't share post with the LinkedIn API

萝らか妹 提交于 2019-12-04 12:36:56
I have been using following SDK to perform integration of LinkedIn into iOS and sharing post from iDevices. SDK is available here: https://github.com/jeyben/IOSLinkedInAPI In this code I can't find proper example code but however I had written some code through which post can be shared. Here is my code: In the code I have only single viewcontroller in which I have taken only two buttons, 1) Linked In Account [This button is used to present login controller and gets user successfully logged into the account] 2) Share [Allows user to share content on behalf of logged in user where the request

urllib2.HTTPError: HTTP Error 401 while querying using the new Bing API ( in azure marketplace )

放肆的年华 提交于 2019-12-04 09:25:50
So, I ve made corrections based on most of the answers under the same roof in stack overflow, I'm still unable to resolve this problem. queryBingFor = "Google Fibre" quoted_query = urllib.quote(queryBingFor) account_key = "dslfkslkdfhsehwekhrwkj2187iwekjfkwej3" rootURL = "https://api.datamarket.azure.com/Bing/Search/v1/" searchURL = rootURL + "Image?format=json&Query=" + quoted_query cred = base64.encodestring(accountKey) reqBing = urllib2.Request(url=searchURL) author = "Basic %s" % cred reqBing.add_header('Authorization',author) readURL = urllib2.urlopen(reqBing) I know I'm missing out

file_get_contents HTTP request failed

北慕城南 提交于 2019-12-04 04:29:38
问题 I written simple php code to get some url content but it dosn't work it return this error file_get_contents(http://www.nature.com/nature/journal/v508/n7496/full/nature13001.html) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 401 Unauthorized here is my code. please help me.tnx $content=file_get_contents('http://www.nature.com/nature/journal/v508/n7496/full/nature13001.html'); echo $content; 回答1: Here's an alternative to file_get_contents using cURL: $url =

Java JBoss 401 Error on SharePoint 2010 Web Service

霸气de小男生 提交于 2019-12-04 04:22:45
My code runs successfully when tested within the Eclipse IDE. I'm connecting to MS SharePoint 2010 via Web Services using the generated Copy.wsdl When I deploy my code on the JBoss server (Running Adobe LifeCycle) my code receives a 401 Error. Error: Caused by: org.jboss.ws.WSException: Invalid HTTP server response [401] - Unauthorized at org.jboss.ws.core.soap.SOAPMessageUnMarshallerHTTP.read(SOAPMessageUnMarshallerHTTP.java:75) at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:608) at org.jboss.remoting.transport.http.HTTPClientInvoker

The remote server returned an error: (401) Unauthorized. Using CSOM in ASP.NET

泄露秘密 提交于 2019-12-04 03:38:44
I'm tried to pull some SharePoint 2013 list data I created which works fine when running locally on my machine and when run locally one the server. I'm user the same credentials when running both locally and locally on the server. The issue is when I publish and navigate to my ASP.NET app on the server I get the "The remote server returned an error: (401) Unauthorized." Error... I've looked at a bunch of the posts on stackoverflow and some other articles on the web This points out that the context seems to be using IUSR: http://blogs.msdn.com/b/sridhara/archive/2014/02/06/sharepoint-2013-csom

How to check for an HTTP status code of 401?

有些话、适合烂在心里 提交于 2019-12-03 18:16:15
问题 In one of the answers that I have received here, I encountered a problem of not knowing how to pass automatically through "Google App Engines" my ID and a password to a website, on which I am a registered user and have an account. A suggestion was given to me to "check for an HTTP status code of 401, "authorization required", and provide the kind of HTTP authorization (basic, digest, whatever) that the site is asking for". I don't know how to check for status code. Can anyone, please, tell me

strange 401 error appears for some urls when using .htaccess to redirect http to https

与世无争的帅哥 提交于 2019-12-03 12:13:07
OK, here is the 7th day of unsuccessfull attempt to find an answer why 401 error appears... Now, .htaccess in the root folder contains the only 3 strings (was simplified) and there are NO more .htaccess files in the project: RewriteEngine On RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} So, it redirects all requests to be https. It works fine for any urls, even for /administration directory. So, http://mydomain.com becomes https://mydomain.com If https://mydomain.com was entered, there are no redirections. http://mydomain.com/administration/index.php becomes

Is it possible to send a 401 Unauthorized AND redirect (with a Location)?

孤街浪徒 提交于 2019-12-03 07:27:48
问题 I'd like to send a 401 Unauthorized AND redirect the client somewhere. However: if I do it like this: header('HTTP/1.1 401 Unauthorized'); header('Location: /'); the server sends a 302 Found with Location , so not a 401 Unauthorized . If I do it like this: header('Location: /'); header('HTTP/1.1 401 Unauthorized'); the browser receives both a 401 Unauthorized and a Location , but does not redirect. (IE 9 and Chrome 16 behave the same, so I'm guessing it's correct) Maybe I'm misusing HTTP? I'd

SSRS Report Viewer + ASP.NET Credentials 401 Exception

你。 提交于 2019-12-03 03:21:40
I have a report saved on a SQL2005 reporting server, and I want to return a rendered PDF of this report. I've figured this out when working with a local *.rdlc file ( and I've blogged about it ), but not when the *.rdl resides on a reporting server. I am getting a 401 Not Authorized error at the line... reportViewer.ServerReport.SetParameters(reportDefinition.ReportParameters); Here's the method used to render the report. public byte[] Render(IReportDefinition reportDefinition) { var reportViewer = new ReportViewer(); byte[] renderedReport; try { var credentials = new

Azure DocumentDB Intermittent 401 error when querying REST API via Obj-c

吃可爱长大的小学妹 提交于 2019-12-02 18:56:02
问题 I've been charged with implementing an objective-c based iOS query of the Azure DocumentDB system using the REST API scheme. Utilizing the code found on github, specifically https://github.com/Azure/azure-storage-ios I was able to generate a request that appropriately authenticates and returns the appropriate data.... sometimes. The problem: I receive a 401 (authentication failure) error response from the server intermittently. Making the same request via Node.js does not encounter this