Current location: Hot Scripts Forums » Programming Languages » PHP » curl strange behaviour


curl strange behaviour

Reply
  #1 (permalink)  
Old 09-19-09, 12:16 PM
bhavin12300 bhavin12300 is offline
Newbie Coder
 
Join Date: Jan 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
curl strange behaviour

hi experts, i need some help.

i have one curl script which submit data to one of airline website and get result.
my Problem is: :my script successfully submit data to airline site and get correct response from site when i use script on web server. but when i run same script on my local pc it does not get correct respose from airline site..

can any one let me know why is so? its working on webserver but not on my local pc.
I am using WAMP on my local pc and also CURL is enable on it.
does version or OS of my computer and web server matter?
Reply With Quote
  #2 (permalink)  
Old 09-19-09, 03:11 PM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by bhavin12300 View Post
hi experts, i need some help.
does version or OS of my computer and web server matter?
I wouldn't think so, but I'd never say never.

What's different in the response that you get from the airline site between running it on the server and running it locally? And, are you certain that you're sending the exact same thing? (That would be the first thing I'd be looking at.)
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Reply With Quote
  #3 (permalink)  
Old 09-19-09, 03:17 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
PHP: cURL - Manual

There's a note about PHP/cURL/Windows on the link.
Reply With Quote
  #4 (permalink)  
Old 09-19-09, 10:09 PM
bhavin12300 bhavin12300 is offline
Newbie Coder
 
Join Date: Jan 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by End User View Post
I wouldn't think so, but I'd never say never.

What's different in the response that you get from the airline site between running it on the server and running it locally? And, are you certain that you're sending the exact same thing? (That would be the first thing I'd be looking at.)
Yes sir, i am sending same post data as i am sending from my server.
Response from airline website is flight detail but when i run it from local pc,response contain search form rather than flight detail .
Reply With Quote
  #5 (permalink)  
Old 09-19-09, 10:13 PM
bhavin12300 bhavin12300 is offline
Newbie Coder
 
Join Date: Jan 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by wirehopper View Post
PHP: cURL - Manual

There's a note about PHP/cURL/Windows on the link.
sir,curl on local pc properly installed. i am using WAMP and CURL is enabled.
Reply With Quote
  #6 (permalink)  
Old 09-21-09, 01:19 AM
bhavin12300 bhavin12300 is offline
Newbie Coder
 
Join Date: Jan 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
please any one?? i been trying to solve this since last three days.
please/
Reply With Quote
  #7 (permalink)  
Old 09-21-09, 02:06 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
Did you check the error log?
Reply With Quote
  #8 (permalink)  
Old 09-21-09, 10:07 PM
bhavin12300 bhavin12300 is offline
Newbie Coder
 
Join Date: Jan 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
there is no erorr.
i think data which i am posting is not send properly on my pc. coz i have created new script to login to yahoo mail account and it work fine on my webserver but its not working on my local computer.
i have tried Both WAMP as well as XAMPP.
Reply With Quote
  #9 (permalink)  
Old 09-22-09, 06:47 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
It would be easier to help you if you would post the code.
Reply With Quote
  #10 (permalink)  
Old 09-26-09, 10:36 PM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by wirehopper View Post
It would be easier to help you if you would post the code.
Lol, where's the sport in that?

I say we all take turns guessing, and bhavin can tell us when we're getting warm.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
curl + post + cookies naissa PHP 1 08-30-09 06:36 AM
PHP Curl horeru_tenshi PHP 4 05-14-09 07:02 AM
Another cURL problem :( arshem PHP 0 01-27-09 08:38 PM
Validator ctrl in table cell : Strange behaviour sunny_doncaster ASP.NET 6 07-31-08 09:43 AM
Trying to get CURL to work.... End User PHP 0 04-06-05 11:11 PM


All times are GMT -5. The time now is 07:59 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.