Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
unauthorized
- Page 1
Can't read all the directories, interrupted by unauthorized exception
Programming
Software Development
15 Years Ago
by potatskie
… loop stops reading the remaining directories if it encounters an
Unauthorized
exception. what i want to happen, is for the code… read from directory A to G and stops because of
Unauthorized
exception. What i want is read all the directories and…
curl returns Unauthorized Error 401
Programming
Web Development
11 Years Ago
by ganesh641
… server it returns the response **"HTTP/1.1 401
Unauthorized
"**. provied some solution here is my curl function code… **200 Ok** in my local environment but its return **401
Unauthorized
** in my client environment.
401: Unauthorized Error on Accessing Remote Web Service
Programming
Web Development
15 Years Ago
by chnswam
… with exception "The request failed with HTTP exception 401:
Unauthorized
". I was previously getting this error, which I had…
System.Net.WebException: The request failed with HTTP status 401: Unauthorized
Programming
Software Development
14 Years Ago
by franceee
… error message WebException: The request failed with HTTP status 401:
Unauthorized
.] System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response…
Re: System.Net.WebException: The request failed with HTTP status 401: Unauthorized
Programming
Software Development
14 Years Ago
by gondaliya
HTTP status 401:
Unauthorized
means you are trying to get the response or trying to fetch the URL which is password protected or Web User does not have the enough permission to read the web page. Try to browse the URL that you are using in the code.
The request failed with HTTP status 401: Unauthorized.
Programming
Web Development
14 Years Ago
by moganrajn
… error msg "The request failed with HTTP status 401:
Unauthorized
." Help me to find solution
cfcache could not retrieve the page content. HTTP status code '401 Unauthorized
Programming
Web Development
14 Years Ago
by paragr
Hi, I am getting one error continuously and recorded in my application log cfcache could not retrieve the page content. HTTP status code '401
Unauthorized
' That is the description of error I searched on the net for solution/help but could not find anything useful. Thanks in advance for any suggestions and help
Re: cfcache could not retrieve the page content. HTTP status code '401 Unauthorized
Programming
Web Development
14 Years Ago
by samaru
… (4xx HTTP), so your request is failing due to an
unauthorized
HTTP request. As mentioned, CFCACHing on the client side would…
I get HTTP Error 401.2 - Unauthorized You are not authorized to view this
Hardware and Software
Microsoft Windows
11 Years Ago
by menukadevinda
….since then I got following error. HTTP Error 401.2 -
Unauthorized
You are not authorized to view this page due to…
HTTP/1.1 401 Unauthorized
Programming
Web Development
11 Years Ago
by ganesh641
I am using curl function to login my web site using the Gmail username and password. Its working fine in my local environment but once i moving that file into my client server it returns the response "HTTP/1.1 401
Unauthorized
". provied some solution Thanks in advance, Ganeshkumar
Unauthorized Sessions
Programming
Web Development
12 Years Ago
by Sparhauoc
Greetings all, I am working on a website with data I only want logged in users to see. I currently have it where once they have logged in successfully, they can browse the website, and if they are not, they are directed to the login page. Sounds great. However, if they attempt to view a private page a second time, they apparently have a …
Re: Unauthorized Sessions
Programming
Web Development
12 Years Ago
by broj1
You should set $_SESSION['loggedin']='1' only after the successful login not in the beginning of the script.
Re: Unauthorized Sessions
Programming
Web Development
12 Years Ago
by Sparhauoc
ok, do I enter that in my login page or the other pages? and can someone point me to an example, i'm kind of a newbie. Just started learning php last week.
Re: Unauthorized Sessions
Programming
Web Development
12 Years Ago
by broj1
Change your login page to something like: [CODE]<?php // start a session (always first thing in a script) session_start(); // initialize session variable with value for not valid login $_SESSION['loggedin']='0' // check for form submission (user clicked on submit button) if($_POST['submit']) { // check if username and password are OK (…
Re: Unauthorized Sessions
Programming
Web Development
12 Years Ago
by Sparhauoc
Ah, I'm starting to understand I think. I need to make a default session value different from a logged in session value. Unfortunately, I'm having some trouble with your code, getting some errors, but I will keep working on it. But thanks for the info, now I at least know why this is happening. If you (or anyone else) have something that will …
Re: Unauthorized Sessions
Programming
Web Development
12 Years Ago
by Sparhauoc
Ok, I'm so close I think. People can't get get a session without logging in. Unfortunately, now people who do log in are still getting a value of '0' instead of '1'. I think my problem now is that it sees the 'submit' in the php code as an undefined index. "NOTICE:Undefined index:submit on line 4". Here is the code as I have it now (…
Re: Unauthorized Sessions
Programming
Web Development
12 Years Ago
by broj1
Change line 4 to [CODE]if(isset($_POST['Submit']) and !empty($_POST['Submit']))[/CODE]
Re: Unauthorized Sessions
Programming
Web Development
12 Years Ago
by broj1
Your code is stil not OK. The credentials validation part is missing. You must check wheter supplied username exists in the database, and wheter password is correct. If both these conditions are true, you set the login condition ($_SESSION['loggedin']='1'). The flag $is_valid is not necessary it was propsed just for clarity. The logic baicaly is: …
Re: Unauthorized Sessions
Programming
Web Development
12 Years Ago
by Sparhauoc
I think its step 3 where I'm stumbling. Here is my code as it stands right now: [CODE] <?php session_start(); $_SESSION['loggedin']='0'; if(isset($_POST['Submit']) and !empty($_POST['Submit'])){ if($is_valid) $_SESSION['loggedin']='1'; header("Location:login_success.php"); } ?>[/CODE] BTW sry to be such a pain. I just started …
Re: Unauthorized Sessions
Programming
Web Development
12 Years Ago
by Sparhauoc
Ok, I have tried every way of saying it I can think of. I even tried "condition"? statements. I keep sending the people who log in successfully back to the login screen. If they login incorrectly they get a message saying so, but they don't get to proceed like they should if they entered it in correctly. Anyone got any ideas?
Re: Unauthorized Sessions
Programming
Web Development
12 Years Ago
by broj1
I have prepared a tutorial with example on how to code a login page. It has been submited as a new thread to the tutorial section. It is not yet there though so I am posting the code here as well. Hope it will help you. It is well commented. Everyone is invited to comment on it and suggest improvements. [CODE]<?php /* Login script example - …
Re: Unauthorized Sessions
Programming
Web Development
12 Years Ago
by Sparhauoc
THANK YOU SO MUCH!!! After a little bit of editing to fit my situation this worked perfectly!! I really appreciate this!
Re: Unauthorized Sessions
Programming
Web Development
12 Years Ago
by broj1
You are welcome.
Re: Can't read all the directories, interrupted by unauthorized exception
Programming
Software Development
15 Years Ago
by LizR
Problem is you havent told it what to do about the exception, you need to tell it to do something.. and you then need to tell it to continue.. Without that, its doing exactly what you've told it to do
Re: Can't read all the directories, interrupted by unauthorized exception
Programming
Software Development
15 Years Ago
by potatskie
yes, you're right. but how i make it to continue, what's the code. can you help me please. i'm new to c# and oop.
Re: Can't read all the directories, interrupted by unauthorized exception
Programming
Software Development
15 Years Ago
by LizR
Well your current code reads while not erroring or end of list do stuff You need to rework that logic. Im not going to code it for you
Re: Can't read all the directories, interrupted by unauthorized exception
Programming
Software Development
15 Years Ago
by potatskie
thanks for the idea.
Re: curl returns Unauthorized Error 401
Programming
Web Development
11 Years Ago
by pritaeas
I am not sure GMail allows this, but you can try to save the cookies. It's likely GMail sets cookie on login, and after redirect it can't find them. Besides that, if you are just trying to get to your email, you can enable POP or IMAP in GMail and use the corresponding PHP functions for it.
Re: curl returns Unauthorized Error 401
Programming
Web Development
11 Years Ago
by veedeoo
If the site is requiring you to have cookies, then we can create a directory named tmp, this should be adjacent to your curl script. ## first we define a directory where to temporarilty store it $cookieDump = tempnam("tmp/", "cookies"); Now, add these to your cURL codes curl_setopt($ch, …
Re: curl returns Unauthorized Error 401
Programming
Web Development
11 Years Ago
by veedeoo
ok, this is what I found out. This is what my brother Michael told me, and hes is working for the big G. What he told me ***"when there is a remote application accessing the atom, from unknown IP address, google will throw 401."*** If you are getting this 401, all need to do is log-in to your gmail account. Look on top of the page for …
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC