FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Intercepting a HTTP request
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Intercepting a HTTP request [message #171649] Fri, 14 January 2011 08:18 Go to previous message
Michaelprem123 is currently offline  Michaelprem123
Messages: 1
Registered: January 2011
Karma:
Junior Member
Hello!

I am using PHP, programming a mashup against MBrainz and last.fm (it
is a teaching related exercise)

I am trying to use a DOMDocument::load to send an API method on a url
parameter, but get an error back.
"HTTP request failed! HTTP/1.0 400 Bad Request"

The same url reacts perfectly when sent on an address line of a
browser. Seems like a User Agent related problem, but setting the user
agent of my PHP script did not help.

How do I intercept the HTTP request that php DOMDocument sends to the
last.fm server to get a closer look at whats going on?

Thanks

Michael
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: ANNOUNCE: NHI1-0.11, PLMK-2.0 und libmsgque-5.0
Next Topic: php xml DOM/xpath how to reference child nodes by name within foreach loop?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 27 21:31:07 GMT 2024

Total time taken to generate the page: 0.07527 seconds