Ubuntu :: Passing A Cookie To Firefox?
Aug 3, 2010
i would like to know whether it is possible to pass firefox a single cookie generated by some other program (in this case wget), doing it from the command line. my concrete use for this is to login to a site (connect.garmin.com) with wget, saving the cookie with --save-cookies --keep-session-cookies, pass this cookie to curl, do some uploads and then pass the cookie to firefox to open the page and have me logged in automatically (everything besides firefox is sorted out). google searches and the firefox man page suggest that firefox doesn't have this functionallity, but would it in that case be possible to link the cookie into firefox's normal cookie jar?
View 1 Replies
ADVERTISEMENT
Jan 21, 2011
I'm looking for a program that will add cookies to my web browser (firefox or chrome, preferably). The application would ask me for the Cookie's:Name
Content
Domain
Path
Send For (type of connection)
Expiration Date
If no one knows of an application that does this, does anyone know what files i could manually edit in order to change a particular browser's cookie values?
View 4 Replies
View Related
Feb 16, 2011
Running Meerkat on Sony Vaio laptop, with Firefox as the browser of choice.The BBC News website has a "My Location" setting, and shares it automatically with the BBC Weather page for a local forecast.Is it possible to clear the Browsing History, yet save the one individual cookie that is used for this ?
View 2 Replies
View Related
Feb 8, 2011
How am I able to post this?
View 2 Replies
View Related
Aug 9, 2010
I would like Chromium to discard all cookies at the end of the session except for specified domains. I thought I had it set up right, but it doesn't remember me on either ubuntuforums or facebook.
Does anyone know if I'm missing something or if this is a bug?
Screenshot of configure attached.
View 2 Replies
View Related
Aug 8, 2011
I'm setting a cookie value using RewriteRule statements in .htaccess for checking if my site should not redirect from the main desktop site to the mobile site (when accessed via iphone browser). The problem occurs when the first RewriteRule sets "mobile=desktop" in the cookie (from detecting "?desktop=true" in the querystring), the third RewriteRule fails to detect the new cookie value and redirect. If I reload the page again (without any querystring for "?desktop=true"), then the third RewriteRule redirects successfully.
Can anyone tell me why the third RewriteRule fails to detect the cookie value straight after it is set in the first rule? How can I fix this to work properly?
[Code]...
View 4 Replies
View Related
Apr 2, 2010
I can open the stream fine from Firefox and I have recorded streams using VLC, however this one uses cookies as authentication and VLC will not play it Apparently it's considered a security issue so cookie support has not been implemented for VLC.
View 2 Replies
View Related
May 6, 2010
Is there any way to get wget to work with a login form that sets a cookie with a javascript function before submission? I know wget cannot call javascript functions but if there was a way to get it to set the cookie instead
Here is the form tag:
<form name="form" method="post" action="https://www.yourfavouritesite.com/login.asp" onsubmit="return SetCookie()">
[code]....
View 8 Replies
View Related
Dec 21, 2008
I am trying to ssh a remote system and redirect X with:
ssh -X remote.system.somewhere
(common user name in local/remote system so no need to set -l uname ) however I receive the following:
x11_request_forwarding: bad authentication data: MIT-MAGIC-COOKIE-1
View 5 Replies
View Related
Jul 27, 2011
I am learning jquery and I think for the most part I have the basics down. One of the things that I am attempting to do is to create cookies using the jquery cookie plugin. The idea is that I want to replace as much of the javascript in my code as possible with jquery to see the difficulties in doing it one way or the other.
As easy as it seems to be able to create a cookie using the plugin I have not been able to do some successfully and the only thing that I can think of is the way that I am submitting my parameters is not correct. So with that, here is is my code:
[Code]...
View 5 Replies
View Related
Aug 19, 2011
i recently moved from Ubuntu to Debian(squeeze).. i am very pleased with squeeze except for this bug..I have this python script i wrote to change my wallpaper (through Gconf), the script would be called by cron from time to time.The problem i am facing in Debian is that this script stopped working.I am exporting the $DISPLAY=:0 in Cron, (this is how it worked in Ubuntu)..the cron job i used is below:
-----------
* * * * * export DISPLAY=:0 && /path/to/my/script.py
--------
so the above was not running...I redirected the output and this is what i got as error:
-------------
Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: /usr/bin/dbus-launch terminated abnormally with the following error: Invalid MIT-MAGIC-COOKIE-1 keyAutolaunch error: X11 initialization failed.)
-------------
[code].....
View 1 Replies
View Related
Jul 26, 2010
I just installed the 10.7 drivers (no workaround they just installed). And now after boot i get a black screen. I have a Radeon HD 4850 there is a way to fix this without reinstalling the OS. Ok in recovery mode when I type Startx i get: line 143: /usr/bin/mcookie: no such file or directory Couldn't create cookie Then if i type Xorg -configure i get : Fatal server error: Cannot open log file "/var/log/Xorg.0.log" Please consult the fedora project support.
View 14 Replies
View Related
Nov 20, 2010
I'm trying to set up a hot spot using a squid proxy server for network logging of accessed website URLs. I really would like to pass all web traffic through a custom PHP program.Like when a computer tries to access www.google.com it first goes through the proxy server, and then the proxy server sends back a URL like URL...which is then accessed by the end-user's computer.. I'd eventually set up the php program to redirect the user to the requested URL after my application executes.Is this at all possible to do, with or without squid?
View 2 Replies
View Related
Mar 13, 2011
I have some source code of an application called gmapping.
I am pasting the source code documentation below:
SCANMATCHER:
How do I run this file. When I enter the filename parameter, and press enter, I get
COMMAND LINE: parameter aces not recognized no filename specified
GridFastSlam: Initialization Error!
(Did you specified an input file for reading?)
What is the right line to type in the terminal to sun this code?
View 1 Replies
View Related
Jun 25, 2010
We have a ubuntu machine on the network with number of users in it. Basically, when other users connect via telnet i want then to get particular messages depending on the user. The message will be set by the administrator or a particular user with privs. Similarly we also need a to-do app via which users can update their work and see each others progress . Its all in a local network. Do tell what would be the best way to do it!
View 2 Replies
View Related
Feb 2, 2011
I'm using an ubuntu machine to route internet to my main PC. I think I finally got it working with DHCP and all, but there's still a slight problem. DNS does not work! My /etc/dhcp3/dhcpd.conf file contains the following lines:
Code:
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
[Code].....
I am currently only able to post on this forum because I copied /etc/resolv.conf from my server to my main machine. Now DNS is working. But it should update automatically, right? Currently, this isn't working.
If possible, I'd like it most if I wouldn't have to hardcode the DNS servers in /etc/dhcp3/dhcpd.conf either, but that the server would just relay the DNS adress it has gotten itself!
View 7 Replies
View Related
Mar 29, 2011
I am having an issue with pureftpd and the way it handles passive mode. Here is a link to a discussion on filezilla.
[URL]
Basically the problem I have is that the Ubuntu Server is not passing the right IP address. It passes the internal "unrecognized IP address"
How do I set up Ubuntu to know it external IP address and pas it during a passive mode FTP connection?
View 1 Replies
View Related
Apr 26, 2011
I want to write a script that runs ssh-keygen command and when it prompts for input, the ENTER key code is passed automatically for all questions.
For example consider this:
Code:
I want to automatically pass ENTER to the questions. What should I do?
View 6 Replies
View Related
Feb 28, 2010
It seems incrontab wont see spaces properly at all. I setup a script to echo the arguments passed to it by incrontab to a file, and no matter what I put around the arguments on the incrontab file it will count a space as the next argument.
I have written a script to automatically retrieve imdb artwork for a given filename. Here is the script:
Code:
You can ignore all the commented "echo" commands that was just me testing. Anyway, the script work fine, however I am trying to use incrontab to monitor a folder, when a new (video) file is moved into the folder, it should execute the script and retrieve the artwork. My problem is, when incrontab passes the $# argument to my script, the script wont work because the spaces aren't escaped.
Here is some more detail:
Incrontab
Code:
Code:
The problem is, the script GetArtwork, doesn't see "Bangcock Dangerous" it just sees "Bangcock"
I have tried putting quotes around the $# in the incrontab - this just makes the script see "Bangcock (notice the single quote character)
View 2 Replies
View Related
Sep 24, 2010
I was reviewing some scripts written by a person that does not work with us anymore and I found a chunk of code I'd like to know more about.
Code:
mycli <<! >> /var/myprogram.log
command_1
[code]...
View 2 Replies
View Related
Jan 8, 2011
I am new to bash scripting. I want to know whether i can pass one variable to another. For example $1 represent argument1. Now if i want to get the argument 1 like USER="1" now i want $ of $USER to execute $1 so what should i do..
View 2 Replies
View Related
May 18, 2010
I'm struggling with the issue of passing a vector of a class to itself, here's what state its in now... (tried many variations, but without direction).
Code:
#include <iostream>
#include <string>
[code]...
View 2 Replies
View Related
Aug 21, 2010
I'm trying to work out the best way to achieve the following.
1)php page that grabs data from a local database. (not a problem)
2)It then needs to send this data to a c program/service running on a remote server. (I probably need it to be able to handle 4+ million reocrds in an array)
3) The c service then needs to process the data and send it back to the initial php script that called it. i was hoping this could be in a an array like structure of some kind. 4)update the db with the results.
I was thinking of using gsoap to write a simple c soap service that php can communicate with. Would this be the right way of doing this or would something like sockets in php be a better way of sending this volume of data as an array or struct to linux c socket if thats even possible.
View 3 Replies
View Related
Sep 9, 2010
I've given a bit of support using Mod_rewrite to use magical urls to redirect to scripts, but when I migrated to Ubuntu's Apache2... I'm lost. I basically want to rewrite like this:
Code: RewriteRule ^artist/(.+)/$ artist.php?artname=$1 But I noticed that it wasn't passing the artist=$1 to the server GET vars. Then I noticed that if I changed the name of the file in both the rule and the file system to artists.php, typing artist/blah/ no longer was found. So then I realized that if I removed the rewrite rule artist/hello/ would still resolve to artist.php without any parameters my htaccess is like so:
[Code]...
View 1 Replies
View Related
Apr 1, 2011
Using 10.04 and x11vnc I'm finding that upper case characters are being sent as lower case. I've tried multiple keyboard configurations with no success
View 1 Replies
View Related
Jan 21, 2010
In short: how to make sudo not to flush PATH everytime?
I have some websites deployed on my server (Debian testing) written with Ruby on Rails. I use Mongrel+Nginx to host them, but there is one problem that comes when I need to restart Mongrel (e.g. after making some changes).
All sites are checked in VCS (git, but it is not important) and have owner and group set to my user, whereas Mongrel runs under the, huh, mongrel user that is severely restricted in it's rights. So Mongrel must be started under root (it can automatically change UID) or mongrel.
To manage mongrel I use mongrel_cluster gem because it allows starting or stopping any amount of Mongrel servers with just one command. But it needs the directory /var/lib/gems/1.8/bin to be in PATH: this is not enough to start it with absolute path.
Modifying PATH in root .bashrc changed nothing, tweaking sudo's env_reset and env_keep didn't either.
So the question: how to add a directory to PATH or keep user's PATH in sudo?
Update: some examples
$ env | grep PATH
PATH=/usr/local/bin:/usr/bin:/bin:/usr/games:/var/lib/gems/1.8/bin
$ sudo cat /etc/sudoers | egrep -v '^$|^#'
Defaults env_keep = "PATH"
[Code]....
View 4 Replies
View Related
Jan 12, 2011
i'm programming a small tcp client, but i need that the server knows the source ip. My client receives a external connection and forwards, but the ip seen by the server, of course, is the client ip. I would like, change this ip to original source ip.
I don't know how to do this. I tried with the connect and select function.
View 5 Replies
View Related
Jul 24, 2010
How can I pass xml data from memory or a variable to xmllint that expects a file as input? Or does xmllint have the capabilities to read from stin or a variable?
View 4 Replies
View Related
Nov 18, 2009
I'm using gdb to debug my program. My program requires arguments (e.g., ./prog -dfile).But if I use gdb as in gdb ./prog -dfile, gdb wants to interpret the -d argument. How do I pass an argument to my program via gdb?
View 2 Replies
View Related
Mar 31, 2011
So I'm trying to teach myself to write programs for unix in c. I am currently creating a program, and I need to pass a struct through a socket
The struct I want to pass has two types in it, one enum and one union of two other structs. These two other structs each contain an int and a char variablename[256] array.
gcc won't let me just pass the struct using write(pipefd[1], struct, size_of_struct) since the struct is not a char buffer. So that's my question...how does one go about passing a struct?
View 1 Replies
View Related