Computing desk | ||
---|---|---|
< October 12 | << Sep | October | Nov >> | October 14 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
I want to get past a website that restricts from where you can access it (one of those "You don't appear to be in the US"-things), and on windows I always used TOR to do that, it just seemed like the easiest way. It had that nice little GUI with a button that said "rebuild identity" that rebuilt your TOR-circuit. However, I have no idea how to do that on Ubuntu. I installed the thing fine and it's working, but it's dead-slow and I can't find anything in the tor man-page that instructs me how to rebuild the path. How do you do it? 83.249.109.188 00:23, 13 October 2007 (UTC)
I wonder if anyone could help me find an interesting image I'd like to see?
What I'm looking for is a comparison between a ray traced scene and an image (greyscale perhaps) representing the number of BSP-boundarys/triangles/bounding boxes/sum of all traversed per ray-pixel. Anyone got or seen anything like this? Cheers 83.100.254.51 17:11, 13 October 2007 (UTC)
My client purchased a "virtual terminal" to process credit card payments, and has asked me to find a suitable shopping cart system to allow her to process online orders on her website. Unfortunatly, to date I've only set up informational websites, so I'm out of the loop as to what to look for in a shopping cart system. I'm familiar with HTML and Java and Javascript and Perl, not so much with PHP or Mywhatever thingie MySQL (thanks, Froth), but if I sit down and write something in Perl it'll take me quite a while and she's paying by the hour, so she'd prefer to purchase something readymade and have me install it. She's looking to spend maybe $150. What are my options and how do they work? She's rather particular about the design itself, since she's an artist, rather than caring about the technical details (which is why she hires me).
Kuronue |
Talk 17:47, 13 October 2007 (UTC)
Hi,
I am fully aware that it is quite easy to use the Wikipedia API to do a cURL login, and have had this working perfectly and so on. However, for some random reasons (non-Wikipedia related) I need to use cURL to log in to a Wiki without using the API. I can post fine, but it refuses to remember that I've logged on.
Basically, does someone know why this POST is failing?
Builder function:
$this->ch = curl_init(); $this->uid = dechex(rand(0,99999999)); curl_setopt($this->ch,CURLOPT_COOKIEFILE,'/tmp/testingphp.cookies.'.$this->uid.'.dat'); curl_setopt($this->ch,CURLOPT_COOKIEJAR,'/tmp/testingphp.cookies.'.$this->uid.'.dat'); curl_setopt($this->ch,CURLOPT_MAXCONNECTS,100); curl_setopt($this->ch,CURLOPT_CLOSEPOLICY,CURLCLOSEPOLICY_LEAST_RECENTLY_USED);
Post function:
function post ($postto,$postwhat) { curl_setopt($this->ch,CURLOPT_URL,$postto); curl_setopt($this->ch,CURLOPT_POST,1); curl_setopt($this->ch,CURLOPT_FOLLOWLOCATION,1); curl_setopt($this->ch,CURLOPT_MAXREDIRS,10); curl_setopt($this->ch,CURLOPT_HEADER,1); curl_setopt($this->ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($this->ch,CURLOPT_USERAGENT,'Ale_jrb'); curl_setopt($this->ch,CURLOPT_TIMEOUT,25); curl_setopt($this->ch,CURLOPT_CONNECTTIMEOUT,15); curl_setopt($this->ch,CURLOPT_POSTFIELDS, substr($this->data_encode($postwhat), 0, -1) ); return curl_exec($this->ch); }
Login function:
function login ($username,$password) { $login['wpName1'] = $username; $login['wpPassword1'] = $password; $login['wpRemember'] = 1; $this->http->post(' http://en.wikipedia.org/?title=Special:Userlogin&action=submitlogin&type=login&returnto=User:Ale_jrb',$login); print_r($this->http->get(' http://en.wikipedia.org/wiki/Main_Page')); }
Login call:
login('Username','Password');
Thanks!
Ale_Jrb
talk 21:13, 13 October 2007 (UTC)
HTTP/1.0 200 OK Date: Tue, 16 Oct 2007 17:55:54 GMT Server: Apache X-Powered-By: PHP/5.2.1 Set-Cookie: enwiki_session=561064099f9b0c165ef68e71935bba49; path=/ Content-Language: en Vary: Accept-Encoding,Cookie Expires: Thu, 01 Jan 1970 00:00:00 GMT Cache-Control: private, s-maxage=0, max-age=0, must-revalidate Last-Modified: Tue, 16 Oct 2007 16:55:24 GMT Content-Length: 53353 Content-Type: text/html; charset=utf-8 X-Cache: MISS from sq27.wikimedia.org X-Cache-Lookup: MISS from sq27.wikimedia.org:3128 X-Cache: MISS from sq34.wikimedia.org X-Cache-Lookup: MISS from sq34.wikimedia.org:80 Via: 1.0 sq27.wikimedia.org:3128 (squid/2.6.STABLE13), 1.0 sq34.wikimedia.org:80 (squid/2.6.STABLE13) Connection: close
HTTP/1.0 200 OK Date: Tue, 16 Oct 2007 17:56:56 GMT Server: Apache X-Powered-By: PHP/5.1.4 Content-Language: en Vary: Accept-Encoding,Cookie Expires: Thu, 01 Jan 1970 00:00:00 GMT Cache-Control: private, s-maxage=0, max-age=0, must-revalidate Last-Modified: Tue, 16 Oct 2007 16:55:24 GMT Content-Length: 52109 Content-Type: text/html; charset=utf-8 X-Cache: MISS from sq27.wikimedia.org X-Cache-Lookup: MISS from sq27.wikimedia.org:3128 X-Cache: MISS from sq36.wikimedia.org X-Cache-Lookup: MISS from sq36.wikimedia.org:80 Via: 1.0 sq27.wikimedia.org:3128 (squid/2.6.STABLE13), 1.0 sq36.wikimedia.org:80 (squid/2.6.STABLE13) Connection: close
Whenever I send a Content-Type of "application/xhtml+xml", Firefox fails to render my background image. Why is that? -- wj32 talk | contribs 23:47, 13 October 2007 (UTC)
Computing desk | ||
---|---|---|
< October 12 | << Sep | October | Nov >> | October 14 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
I want to get past a website that restricts from where you can access it (one of those "You don't appear to be in the US"-things), and on windows I always used TOR to do that, it just seemed like the easiest way. It had that nice little GUI with a button that said "rebuild identity" that rebuilt your TOR-circuit. However, I have no idea how to do that on Ubuntu. I installed the thing fine and it's working, but it's dead-slow and I can't find anything in the tor man-page that instructs me how to rebuild the path. How do you do it? 83.249.109.188 00:23, 13 October 2007 (UTC)
I wonder if anyone could help me find an interesting image I'd like to see?
What I'm looking for is a comparison between a ray traced scene and an image (greyscale perhaps) representing the number of BSP-boundarys/triangles/bounding boxes/sum of all traversed per ray-pixel. Anyone got or seen anything like this? Cheers 83.100.254.51 17:11, 13 October 2007 (UTC)
My client purchased a "virtual terminal" to process credit card payments, and has asked me to find a suitable shopping cart system to allow her to process online orders on her website. Unfortunatly, to date I've only set up informational websites, so I'm out of the loop as to what to look for in a shopping cart system. I'm familiar with HTML and Java and Javascript and Perl, not so much with PHP or Mywhatever thingie MySQL (thanks, Froth), but if I sit down and write something in Perl it'll take me quite a while and she's paying by the hour, so she'd prefer to purchase something readymade and have me install it. She's looking to spend maybe $150. What are my options and how do they work? She's rather particular about the design itself, since she's an artist, rather than caring about the technical details (which is why she hires me).
Kuronue |
Talk 17:47, 13 October 2007 (UTC)
Hi,
I am fully aware that it is quite easy to use the Wikipedia API to do a cURL login, and have had this working perfectly and so on. However, for some random reasons (non-Wikipedia related) I need to use cURL to log in to a Wiki without using the API. I can post fine, but it refuses to remember that I've logged on.
Basically, does someone know why this POST is failing?
Builder function:
$this->ch = curl_init(); $this->uid = dechex(rand(0,99999999)); curl_setopt($this->ch,CURLOPT_COOKIEFILE,'/tmp/testingphp.cookies.'.$this->uid.'.dat'); curl_setopt($this->ch,CURLOPT_COOKIEJAR,'/tmp/testingphp.cookies.'.$this->uid.'.dat'); curl_setopt($this->ch,CURLOPT_MAXCONNECTS,100); curl_setopt($this->ch,CURLOPT_CLOSEPOLICY,CURLCLOSEPOLICY_LEAST_RECENTLY_USED);
Post function:
function post ($postto,$postwhat) { curl_setopt($this->ch,CURLOPT_URL,$postto); curl_setopt($this->ch,CURLOPT_POST,1); curl_setopt($this->ch,CURLOPT_FOLLOWLOCATION,1); curl_setopt($this->ch,CURLOPT_MAXREDIRS,10); curl_setopt($this->ch,CURLOPT_HEADER,1); curl_setopt($this->ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($this->ch,CURLOPT_USERAGENT,'Ale_jrb'); curl_setopt($this->ch,CURLOPT_TIMEOUT,25); curl_setopt($this->ch,CURLOPT_CONNECTTIMEOUT,15); curl_setopt($this->ch,CURLOPT_POSTFIELDS, substr($this->data_encode($postwhat), 0, -1) ); return curl_exec($this->ch); }
Login function:
function login ($username,$password) { $login['wpName1'] = $username; $login['wpPassword1'] = $password; $login['wpRemember'] = 1; $this->http->post(' http://en.wikipedia.org/?title=Special:Userlogin&action=submitlogin&type=login&returnto=User:Ale_jrb',$login); print_r($this->http->get(' http://en.wikipedia.org/wiki/Main_Page')); }
Login call:
login('Username','Password');
Thanks!
Ale_Jrb
talk 21:13, 13 October 2007 (UTC)
HTTP/1.0 200 OK Date: Tue, 16 Oct 2007 17:55:54 GMT Server: Apache X-Powered-By: PHP/5.2.1 Set-Cookie: enwiki_session=561064099f9b0c165ef68e71935bba49; path=/ Content-Language: en Vary: Accept-Encoding,Cookie Expires: Thu, 01 Jan 1970 00:00:00 GMT Cache-Control: private, s-maxage=0, max-age=0, must-revalidate Last-Modified: Tue, 16 Oct 2007 16:55:24 GMT Content-Length: 53353 Content-Type: text/html; charset=utf-8 X-Cache: MISS from sq27.wikimedia.org X-Cache-Lookup: MISS from sq27.wikimedia.org:3128 X-Cache: MISS from sq34.wikimedia.org X-Cache-Lookup: MISS from sq34.wikimedia.org:80 Via: 1.0 sq27.wikimedia.org:3128 (squid/2.6.STABLE13), 1.0 sq34.wikimedia.org:80 (squid/2.6.STABLE13) Connection: close
HTTP/1.0 200 OK Date: Tue, 16 Oct 2007 17:56:56 GMT Server: Apache X-Powered-By: PHP/5.1.4 Content-Language: en Vary: Accept-Encoding,Cookie Expires: Thu, 01 Jan 1970 00:00:00 GMT Cache-Control: private, s-maxage=0, max-age=0, must-revalidate Last-Modified: Tue, 16 Oct 2007 16:55:24 GMT Content-Length: 52109 Content-Type: text/html; charset=utf-8 X-Cache: MISS from sq27.wikimedia.org X-Cache-Lookup: MISS from sq27.wikimedia.org:3128 X-Cache: MISS from sq36.wikimedia.org X-Cache-Lookup: MISS from sq36.wikimedia.org:80 Via: 1.0 sq27.wikimedia.org:3128 (squid/2.6.STABLE13), 1.0 sq36.wikimedia.org:80 (squid/2.6.STABLE13) Connection: close
Whenever I send a Content-Type of "application/xhtml+xml", Firefox fails to render my background image. Why is that? -- wj32 talk | contribs 23:47, 13 October 2007 (UTC)