Capturing outgoing traffic from localhost MAMP using Wireshark - php

I'm trying to capture outgoing SOAP (over HTTP) requests generated by one of my PHP scripts (being run on my localhost). I'm running MAMP and using the PHP NuSOAP library for sending the request, I filter to HTTP traffic in Wireshark but nothing shows up when I run the script (which is sending a SOAP request to an external server via HTTP). Any ideas?
Thanks

Related

Problems using Curl (56)

I am using AWS and Curl to send a request to a web service that connects to port 8080, I have already consumed another web service that connects to different ports and I have no problem, but with this, when I send the request, it quickly rejects the connection and The errno 56 code returns.
Is there a limitation in Curl that blocks connections when sending to a site with this port?
The cURl error 56 can have different reasons like: Passing data to be uploaded in URL itself instead of POST request. Probably Proxy blocking the request to the server. In some cases, the server does not support particular request, like some servers support PUT/POST any one of them.

Monitor http traffic going from localhost wordpress on Fiddler

I want to monitor all HTTP requests going to the internet from a locally deployed Wordpress instance (on XAMPP server) on Fiddler. I guess I may need to configure XAMPP (or php specifically) to route all the requests going from it to the internet via Fiddler proxy but I am not sure how to do that. Has someone done this before?
Flow:
1. Wordpress (on a local XAMPP instance) makes an ajax call to the internet via a plugin.
2. I want to check the HTTP request and response for debugging.
3. I configured Fiddler to monitor localhost traffic but that does not show me requests sent by XAMPP.
4. Stuck!

Attach Eclipse php debugger to Apache server

I have built an app that sends requests to a server.
I also built a server to response those requests. I have a PHP server locally (LAMP).
Now, for debug purposes , I want to debug the requests that my app is sending to the server. But I don't want to do that separately (printing the app's request and than start debug the server with that request),
I want eclipse (PDT installed and xdebug) to stop at the first line of the PHP script running by the server WHEN the app is sending a request to the server.
How can I do that ?

PHP on apache server http calling javascript api on tomcat server

client <<====>> apache http server(PHP) <<======>> Tomcat server( javascript api)
The client hits the PHP on apache http server, this intern should call a javascript api which returns a json object ,all the execution and loading should happen on apache http server and the client should not be involved once he/she has hit the PHP.
This runs fine if client directly calls the javascript on tomcat.
How can this be be done?
Will mod_jk connectors help in this?
client <<====>> apache http server(PHP) <<======>> Tomcat server( javascript api)
You can use PHP-cURL to do a request to the Tomcat server from you php script: http://php.net/manual/en/book.curl.php
Or, if you need something a bit simpler, just do file_get_contents to the http location: http://php.net/manual/en/function.file-get-contents.php

Is there a limit to POST over HTTPS for IIS 7?

I am building a web service in PHP that processes data received from a Windows application through a SOAP request. The Windows application is a bit of a black box but it generates a long stream of messages and then POSTS them as a single SOAP request.
Using HTTP this works and requests sized in multiple Mb's work fine.
Using HTTPS only small requests work larger requests fail with a Internal Server Error 500 and never make it to the PHP web service.
The PHP application itself runs on a W2008 server, under IIS7
Is there a setting that influences this or is there a known limit to HTTPS requests?

Categories