addressing problem

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

johnmcg

Thread Starter
Joined
Aug 4, 2010
Messages
11
Hi - I'm having a bit of a problem accessing a device remotely via a php page. I need to have the page connect to the device every 30 minutes and read a file. The problem I am having is that the device requires login and it is behind a port forward.

To log in to it via the web GUI, I just type in the ip address with port, then login through the GUI. When I do this via the php page, I have to put the login info in the url as follows:
http:// username : password @ ipadress : port / pathname

I think the above isn't working because the username and password get stripped off by the router that does the port forward. Is there a workaround for this?
 
Joined
Aug 12, 2007
Messages
696
Try using curl in php. Google 'curl php post' for lots of examples.
 

johnmcg

Thread Starter
Joined
Aug 4, 2010
Messages
11
Thanks for the suggestion.
I'm working on using curl, but I'm not having much luck. Is there a particular setopt that I'm supposed to use for something like this? I get lots of "500 internal server error"s with what I'm doing now.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Top