Curl & sessions PLS HELP


Posted on 16th Feb 2014 07:03 pm by admin

Hello,

I have a problem with curl and sessions and i will try to explain the best i could.

01. I want to download a file from (http://subdomain.example.com/name-13075.html) with curl.
02. The problem is: when i access (http://subdomain.example.com/name-13075.html) a cookie is stored with name (PHPSESSID), content(23ad67e9f817407224d7bdc367c040a4), domain(.example.com), path(/).
03. Another thing that i find is: when i am on (http://subdomain.example.com/name-13075.html) i can download that file but if i access the download link in a new tab i get "Download failed".

And i try like a week to get this done but with no results.

Anybody could help me? I really need to get this done and i really apreciate any help.

If you could show me an example or something would be great.

Thanks a lot and sorry for my bad english

No comments posted yet

Your Answer:

Login to answer
114 Like 33 Dislike
Previous forums Next forums
Other forums

Send current URL in URL with a $_GET variable problem.
Hello community,

I have created a function that gets the current variable of a page, example:

PHP Script runs on CLI but not through web browser
I am running into an issue that I just can't seem to find the answer to. I have a Windows Server 200

DOMDocument parsing
Hello, I am parsing an xml file from an API which I have converted into a DOMDocument in php. This i

Problem with the Update command used with a sqldataadapter
I'm connected to a database on an SQL Server and I'm using a sqldataadapter, sqlconnection, sqldatas

Stuck with preg_replace
Hi,

I'm trying to use preg_replace to remove part of the IP address submitted using a form on

LinkedList help
Ok so I just learned quickly about lists, so I have a not too hard project I think, but am having a

Having a problem get the selected item from a drop down menu
I have been looking at this for days now.

I have a drop down menu that get it's values from a

Creating a function
Basically i wanna put all this code in a seperate file

Code: <?php

This is driving me nuts!
This insert query looks to be alright, however I get this error:

QuoteYou have an error in yo

Trouble with a select list
Hello All!
I was wondering if any of you guys could help me with a small problem I'm having!

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash