473,500 Members | 1,822 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CURL with JS Query

1 New Member
Hello,

I'm currently trying to query an HTML page to extract data into a DB via the CURL command. The page containing the data is a frame within a 'parent' window. The parent window expects a number of parameters (which it uses as a form of login), then the 'child' window is displayed.

Code of the 'parent window'...
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  5. <title>Page Title</title>
  6. <script language="javascript">
  7.  
  8. var ready=false;
  9. var mLoaded=false;
  10. </script>
  11. </head>
  12. <frameset rows="*,1" border=0>
  13.     <frame name="Aleft" src="Main.html" scrolling=auto noresize border=0 frameborder=0 marginwidth=5 marginheight=0>
  14.     <frame name="Aright" src="Other.html" scrolling=no noresize border=0 frameborder=0 marginwidth=0 marginheight=0>
  15. </frameset>
  16. </html>
  17.  
When I load the 'child' window (Main.html) straight into my browser I get an invalid ID error result, but when I first go to the 'parent' frame page, then again directly to the 'child' frame, it's fine. I've tried passing the parameters used in the 'parent' URL straight into the 'child' URL, but it makes no difference.

The HTML from the frame page doesn't pass any additional parameters to the 'child' page, but does contain...

Expand|Select|Wrap|Line Numbers
  1. <script language="javascript">
  2.  
  3. var ready=false;
  4. var mLoaded=false;
  5. </script>
  6.  
I can't see anything else that would make a difference. I've tried all URLs with the NoScripts plugin switched on within Firefox and I get the same response, which rules out Javascript and any security that may be applied using Javascript. But it almost seems that the 'child' window is querying the 'parent' window for validation - despite Javascript not being used.

Could the 'child' window be checking the referer? COuld there be some cookies somewhere and I'm just not seeing it / them?

Essentially my question is, how can I grab data from this 'child' window? I know I haven't given links (due to the sensitive nature of the data and server in question), but I'm assuming similar problems have been encountered in the past?

Any help is greatly appreciated, thanks
Rob
Mar 19 '10 #1
0 1508

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2916
by: Haluk Durmus | last post by:
Hello I checked out openssl,mm,apr,apr-util,apache 2,curl,libxml and php from cvs. php couse an ERROR I did the following steps:
3
6312
by: Chris Fortune | last post by:
# uname -a Linux stargate.mxc-online.net 2.4.20-021stab022.2.777-smp #1 SMP Wed Jul 28 17:12:37 MSD 2004 i686 i686 i386 GNU/Linux I recompiled PHP with mcrypt, openssl, and curl phpinfo():...
3
5042
by: Hans | last post by:
Hi everybody, I am desperately trying to log into my account at godaddy.com with PHP and Curl and just cannot make it happen. Has anybody written a script for this purpose? Here is what I...
0
5843
by: nfhm2k | last post by:
I've been trying to find a solution to this for quite some time now... I even took a look at existing scripts... Including this one......
0
2705
by: axlq | last post by:
While trying to learn the ins and outs of the php CURL library, I decided to write a php script that posts a form on the Chicago Board of Options (CBOE) web site, which returns an ASCII text file. ...
4
8027
by: zorro | last post by:
Hello there, I can't figure out why is it that when i use an array for my postfields it doesn't work : this works curl_setopt($curl, CURLOPT_POSTFIELDS, "clown=bozo" ); this doesn't...
0
3328
by: xerc | last post by:
I am trying to create a generic function I can call to download all files from a single remote FTP directory -- using CURL. I want to multi-thread it, but need to get the single thread functionality...
1
4894
by: c1pkw | last post by:
Hi there, I’m having a real heap of trouble with PHP and cURL My aim is to use this code (or something like it) to submit 2 fields to a remote server (using GET) and receive back 6 fields...
3
10081
by: rottmanj | last post by:
I am re-writing my rets application in perl, and I have found a few modules that will help me on my way. One of them being WWW::Curl:easy. During my testing, I have tested both system curl and...
6
9958
by: lakmarket | last post by:
Hi, I am trying to send some querysting using cURL. This is the working API ...
0
7136
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7018
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7182
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7232
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
4923
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4611
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3110
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
316
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.