OK... so here is my code:
twitterEngine = [[MGTwitterEngine alloc] initWithDelegate:self];
[twitterEngine setConsumerKey:CONSUMER_KEY secret:CONSUMER_SECRET];
accessToken = [twitterEngine getXAuthAccessTokenForUsername:profile.twitterUserId password:profile.twitterPassword];
NSLog(@"Access token: %@", accessToken);
the...
I have a wcf service consumed by a silverlight 3 control. The Silverlight client uses a basicHttpBindinging that is constructed at runtime from the control's initialization parameters like this:
public static T GetServiceClient<T>(string serviceURL)
{
BasicHttpBinding binding = new BasicHttpBinding(Application.Current.Host.Source....
I've got a hardware internet radio player which needs to play a stream which is behind an http auth (standard 401 request).
Unfortunately, the device can't cope with http auth, you can't build the username and password into the link (eg: username:password@http etc - and besides, the server won't accept that) and it plays streams by call...
I want to check if a page returns the status code 401. Is this possible?
Here is my try, but it only returns 0.
$.ajax({
url: "http://my-ip/test/test.php",
data: {},
complete: function(xhr, statusText){
alert(xhr.status);
}
});
...
I'm trying to get a custom HTTP 401 error working on asp mvc 2 on the development server with no luck.
In my root web.config i have
<authentication mode="Windows">
</authentication>
and
<customErrors mode="On">
<error statusCode="401" redirect="/Home/NotAuthorized"/>
</customErrors>
and i've defined the Action on the Home co...
Since working with Exchange Web Services 2010 is a bit ridiculous, especially from anything other than .NET, I've been tasked with wrapping some functionality up in a SOAP web service that acts as a pass-through for other languages to interact with our Exchange environment.
[Misc] <-(SOAP)-> ASP.NET ASMX web service <-(EWS Managed AP...
I wrote an ASP.NET page that requires HTTP Basic authorization, which I put in the Page_Load function:
void Page_Load(object sender, EventArgs e)
{
string auth = Request.Headers["Authorization"];
if (string.IsNullOrEmpty(auth))
{
Response.StatusCode = 401;
}
else
{
string[] usernameAndPassword = Enc...
I have a .NET2.0 (VB) running in my IIS6 (XP Pro SP2) and a .NET3.5 (configured as .NET2 under IIS's ASP.NET tab, of course) hosting an ASMX web service.
In chrome I can call the ASMX invoke the web methods successfully, however in calling the web methods in code, from the .NET2 website I get:
The request failed with HTTP status 401: U...
For a web page that exists, but for which a user that does not have sufficient privileges, (they are not logged in or do not belong to the proper user group), what is the proper HTTP response to serve? 401? 403? Something else? What I've read on each so far isn't very clear on the difference between the two. What use cases are appropriat...
I am extracting gmail contacts using opencontactsnet. I get The remote server returned an error: (401) Unauthorized. when executing this line
HttpWebResponse exportResponse = ( HttpWebResponse ) contactsRequest.GetResponse();
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using...
Hi - I just migrated my .NET MVC 3.5 sp1 app to a VPS running 2008x64 and IIS7. My app uses a Crystal Report Viewer to dynamically display reports. I was able to get the reports to display properly after installing the CR runtime CRRedist2008_x64.exe. From past experience I also copied the aspnet_client folder to the root of my app on th...
I've got a hardware internet radio player which needs to play a stream which is behind an http auth (standard 401 request).
Unfortunately, the device can't cope with http auth, you can't build the username and password into the link (eg: username:password@http etc - and besides, the server won't accept that) and it plays streams by call...
I get the following error when trying to push changes to github from the cygwin command promt on windows xp.
$ git push
Password: [my-password-here]
error: The requested URL returned error: 401 while accessing https://[username]:github.com/[username]/[repository-location]/info/refs
fatal: HTTP request failed
Searches from google seeme...
xI've been working for days to get Twitter to authenticate with Ruby, but I'm not having any luck.
My first attempt was something like this:
class TwitterController < ApplicationController
def index
@callback_url = "http://dev.twipler.com:3000/twitter/auth"
@auth= TwitterOAuth::Client.new( :consumer_key => "xxx", :consumer_s...
Hi;
I am using twitter4j-core-2.1.2.jar.
Following is my code which executed after callback url hit.
Code
String token = (String) session.getAttribute("token");
String tokenSecret = (String)session.getAttribute("tokenSecret");
AccessToken accessToken = new AccessToken(token, tokenSecret);
Twitter twitter = new
TwitterFactory...
Hello all, I am getting a 401 unauthorized error when I try to read an XML file from a flash SWF file in IIS7. The file is located right next to the SWF file in the file system.
When I browse to the XML file through the browser, I get the following:
HTTP Error 401.3 - Unauthorized You do
not have permission to view this
director...
according to the twitter api documentation
http://dev.twitter.com/doc/get/statuses/user_timeline
accessing the current logged in users timeline does not require auth. But i'm getting a basic auth not supported response and a 401 when I debug in javascript.
anybody have experience getting the current users info?
http://api.twitter.com...
I'm trying to call the AddAttachment of the Lists.asmx SharePoint web service the below code works fine if I'm calling the web service over HTTP.
Dim img(MyFile.PostedFile.ContentLength - 1) As Byte
MyFile.PostedFile.InputStream.Read(img, 0, img.Length)
'Dim fStream As FileStream = File.OpenRead(FullFileName)
...
I have an ASP.NET repository site running on IIS6.0 and I have an issue that I can't reproduce, but three of the users have this problem every time (~20 other users run just fine). I'm pretty sure it has something to do with the IIS Authentication setup, but I certainly haven't ruled out a coding mistake.
The users tell me that the com...
I wanted to add twitter feed to my application. So I've downloaded python-twitter (with python-oauth) and django-syncr. Installed everything and what now ? In my main view I wanted to perform Twitter synchronisation. So looking into packages source and documentation I've figured this order :
t = TwitterSyncr('name', 'pass') #: create Tw...